انقل فرعًا إلى علامة جديدة
سؤال
يتم استنساخ تثبيت WordPress الشخصي الخاص بي من WordPress Git Mirror على جيثب. لقد راجعت علامة 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
ها أنت ذا.
لا تنتمي إلى StackOverflow