Aブランチが2つあるリポジトリを持つ。Git:特定のコミットを別のブランチに移動する。
マスターブランチはコミット:
C1、C2、C3、C4、C5、C6、C7、...、C15、...
ステージング支店がコミット:
C1、C2を、C3、C4、C5、C6、C7
私は枝
のステージングにC7後にmasterブランチからすべてのコミットを移動してマスを元に戻したいですターブランチ
別のブランチからコピー/特定のコミットを移動する方法
git reset --hard c7-hash
と?
などがあります。この場合、ステージングブランチを早送りできるので、コミットを移動する必要はありませんマスターする。 'git checkout staging'、 ' git merge master'、 'git checkout master'、 ' git reset -hard c7-hash' – tewe
[特定のコミットをgitの別のブランチに移動する方法は?] http://stackoverflow.com/questions/2369426/how-to-move-certain-commits-to-another-branch-in-git) – Kevin
[最近のコミットを新しいブランチに移動するにはどうすればよいですか? git?](http://stackoverflow.com/questions/1628563/how-can-i-move-recent-commits-to-a-new-branch-with-git) –