문제

내 개인 WordPress 설치는 WordPress git 미러 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