2009-06-18 17 views
10

मेरा व्यक्तिगत Wordpress स्थापित GitHub पर wordpress git mirror से क्लोन है करने के लिए एक शाखा ले जाएँ। मैंने "स्थिर" शाखा में 2.7.1 टैग की जांच की (git checkout -b stable 2.7.1) और यह तब से ठीक चल रहा है। अब वर्डप्रेस 2.8 जारी किया गया है मैं अपनी स्थिर शाखा को 2.8 टैग पर ले जाना चाहता हूं।एक नया टैग

मैं (स्थिर शाखा पर सभी) निम्नलिखित लेकिन के रूप में यह प्रत्येक प्रत्येक के लिए प्रतिबद्ध लागू करने के लिए कोशिश करता है संघर्ष पाने की कोशिश की, कुछ सही नहीं लगता है। मैंने स्थिर शाखा पर कोई स्थानीय परिवर्तन/काम नहीं किया है।

git fetch 
git fetch --tags 
git rebase 2.8 

First, rewinding head to replay your work on top of it... 
Applying: Prepare the branch for the inevitable. 
error: patch failed: wp-includes/version.php:8 
error: wp-includes/version.php: patch does not apply 
Using index info to reconstruct a base tree... 
Falling back to patching base and 3-way merge... 
Auto-merging wp-includes/version.php 
CONFLICT (content): Merge conflict in wp-includes/version.php 
Failed to merge in the changes. 
Patch failed at 0001 Prepare the branch for the inevitable. 

When you have resolved this problem run "git rebase --continue". 
If you would prefer to skip this patch, instead run "git rebase --skip". 
To restore the original branch and stop rebasing run "git rebase --abort". 

मैं अपनी स्थिर शाखा को 2.8 टैग पर कैसे "स्थानांतरित" कर सकता हूं?

उत्तर

11

"गिट चेकआउट 2.8" का उपयोग करें।

आप ले जाना "स्थिर" चाहते हैं, आप आसानी से हटा सकते/इसे पुन:

$ git checkout 2.8 
$ git branch -d stable 
$ git checkout -b stable 
+0

शानदार, बहुत आसान! – Wes

+11

गिट चेकआउट -एफ -बी स्थिर 2.8 –

16
# git checkout stable 
# git reset --hard 2.8 

ये लीजिए।

संबंधित मुद्दे