Вопрос

Моя личная установка Wordpress клонирована с wordpress git mirror на GitHub. Я проверил тег 2.7.1 в ветке " стабильный " ( git checkout -b stable 2.7.1 ) и с тех пор работает нормально. Теперь WordPress 2.8 выпущен. Я хочу переместить мою стабильную ветку в тег 2.8.

Я попробовал следующее (все в стабильной ветке), но получал конфликты, когда он пытался применить каждый коммит, что-то не так. Я не делал локальных изменений / коммитов в стабильной ветке.

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

Как мне "переместить" моя стабильная ветка с тегом 2.8?

Это было полезно?

Решение

Используйте & git checkout 2.8 " ;.

Если вы хотите переместить " стабильный " ;, вы можете просто удалить / воссоздать его:

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

Другие советы

# git checkout stable
# git reset --hard 2.8

Вот, пожалуйста.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top