2009-06-18 13 views
10

La mia installazione personale di Wordpress è clonata dal wordpress git mirror su GitHub. Ho controllato il tag 2.7.1 sul ramo "stable" (git checkout -b stable 2.7.1) e da allora funziona bene. Ora è stato rilasciato WordPress 2.8 Voglio spostare il mio ramo stabile sul tag 2.8.Spostare un ramo in un nuovo tag

Ho provato quanto segue (tutto sul ramo stabile) ma ho dei conflitti mentre cerca di applicare ogni commit, qualcosa non sembra giusto. Non ho apportato modifiche/commit locali sul ramo stabile.

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". 

Come si "sposta" il ramo stabile sul tag 2.8?

risposta

11

Utilizzare "git checkout 2.8".

Se si desidera spostare "stabile", si può semplicemente rimuovere/ricrearlo:

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

Brillante, troppo facile! – Wes

+11

git checkout -f -b stabile 2.8 –

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

ci si va.