Skip to content

Instantly share code, notes, and snippets.

@muddydixon
Created August 28, 2013 02:50
Show Gist options
  • Save muddydixon/6361635 to your computer and use it in GitHub Desktop.
Save muddydixon/6361635 to your computer and use it in GitHub Desktop.
特定のbranchの特定のファイルに対するcommitだけをmergeする方法ってどうやるんでしょうか? こうじゃないですよね・・・
for hash in `git log --pretty=format:"%h" $branch $file`;do
echo git cherry-pick $hash;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment