Source From Here
Question
Is it possible to do a "git merge", but without a commit? "man git merge" says this:
But when I try to use git merge with the --no-commit it still auto-commits. Here's what I did:
A subsequent "git log" reveals all the commits from the v1.0 branch merged into master.
How-To
Note the output while doing the merge - it is saying Fast Forward! In such situations, you want to do:
Question
Is it possible to do a "git merge", but without a commit? "man git merge" says this:
But when I try to use git merge with the --no-commit it still auto-commits. Here's what I did:
A subsequent "git log" reveals all the commits from the v1.0 branch merged into master.
How-To
Note the output while doing the merge - it is saying Fast Forward! In such situations, you want to do:
沒有留言:
張貼留言