2009-06-18 15 views
10

Mi instalación personal de Wordpress se clona desde wordpress git mirror en GitHub. Revisé la etiqueta 2.7.1 en la rama "estable" (git checkout -b stable 2.7.1) y ha estado funcionando bien desde entonces. Ahora se lanzó WordPress 2.8. Quiero mover mi rama estable a la etiqueta 2.8.Mover una rama a una nueva etiqueta

Intenté lo siguiente (todos en la rama estable) pero obtuve conflictos mientras trataba de aplicar cada una de las confirmaciones, algo no parece correcto. No realicé cambios/confirmaciones locales en la rama estable.

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

¿Cómo puedo "mover" mi rama estable a la etiqueta 2.8?

Respuesta

11

Use "git checkout 2.8".

Si desea mover "estable", sólo tiene que quitar/volver a crearlo:

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

¡Brillante, muy fácil! – Wes

+11

git checkout -f -b estable 2.8 –

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

Hay que ir.

Cuestiones relacionadas