Pregunta

Mi instalación personal de Wordpress se clona desde wordpress git mirror en GitHub. Verifiqué la etiqueta 2.7.1 a la rama "estable" ( git checkout -b stable 2.7.1 ) y ha estado funcionando bien desde entonces. Ahora que se ha lanzado WordPress 2.8, quiero mover mi rama estable a la etiqueta 2.8.

Intenté lo siguiente (todo en la rama estable) pero tengo conflictos ya que trata de aplicar cada confirmación, algo no parece correcto. No he realizado 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 me muevo " mi rama estable a la etiqueta 2.8?

¿Fue útil?

Solución

Use " git checkout 2.8 " ;.

Si desea mover " estable " ;, simplemente puede eliminarlo / recrearlo:

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

Otros consejos

# git checkout stable
# git reset --hard 2.8

Ahí tienes.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top