Question

Mon installation Wordpress personnelle est clonée à partir du wordpress git mirror sur GitHub. J'ai vérifié l'étiquette 2.7.1 dans la branche "stable". ( git checkout -b stable 2.7.1 ) et il fonctionne bien depuis. WordPress 2.8 est maintenant disponible. Je souhaite déplacer ma branche stable vers la balise 2.8.

J’ai essayé ce qui suit (tous sur la branche stable) mais j’ai des conflits en essayant d’appliquer chaque commit, quelque chose ne semble pas bien Je n'ai effectué aucune modification / validation locale sur la branche stable.

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

Comment puis-je "bouger"? ma branche stable à la balise 2.8?

Était-ce utile?

La solution

Utilisez "git checkout 2.8".

Si vous souhaitez déplacer "stable", vous pouvez simplement le supprimer / le recréer:

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

Autres conseils

# git checkout stable
# git reset --hard 2.8

Voilà.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top