git mergeでコミットしない方法のメモ

git mergeはマージ後にcommitまでやってしまう
ソースのマージだけやって、commitは手動でやりたい場合はどうするのか調べた

方法1

$ git merge --no-commit --no-ff $BRANCH
Automatic merge went well; stopped before committing as requested

参考

http://stackoverflow.com/questions/501407/is-there-a-git-merge-dry-run-option

方法2

$ git merge --squash  $BRANCH
Squash commit -- not updating HEAD
Automatic merge went well; stopped before committing as requested

参考

http://d.hatena.ne.jp/authorNari/20090319/1237455862


簡単に試した感じだと方法1でも2でも結果は変わらないように見えた