2009-06-18 15 views
10

私の個人用Wordpressのインストールは、GitHubのwordpress git mirrorからクローン化されています。私はブランチに "stable"(git checkout -b stable 2.7.1)の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タグに移動するにはどうすればよいですか?

答えて

11

「git checkout 2.8」を使用してください。

あなたが "安定" に移動したい場合は、単にそれを再作成/削除することができます:あなたが行くあり

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

華麗で簡単! – Wes

+11

git checkout -f -b stable 2.8 –

16
# git checkout stable 
# git reset --hard 2.8 

を。

関連する問題