Pergunta

Minha instalação pessoal do WordPress é clonada do WordPress Git Mirror no github. Eu verifiquei a tag 2.7.1 na filial "estável" (git checkout -b stable 2.7.1) e está funcionando bem desde então. Agora foi lançado o WordPress 2.8. Quero mover minha filial estável para a tag 2.8.

Eu tentei o seguinte (tudo no ramo estável), mas recebo conflitos, pois ele tenta aplicar cada um com compromisso, algo não parece certo. Eu não fiz alterações/compromissos locais no ramo estável.

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

Como faço para "mover" minha filial estável para a tag 2.8?

Foi útil?

Solução

Use "Git checkout 2.8".

Se você quiser se mover "estável", pode simplesmente removê -lo/recriar:

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

Outras dicas

# git checkout stable
# git reset --hard 2.8

Ai está.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top