P
P
Pavel Bezrukov2014-08-07 23:11:53
git
Pavel Bezrukov, 2014-08-07 23:11:53

Is there a difference between the --squash and --no-commit options of the git merge command?

Good afternoon.
Is there a difference between --squash and --no-commit options in git merge?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2014-08-08
@jcmvbkbc

There is a difference. In the case of squash, after the commit, in the history of the branch into which the merge was made, there will be only one commit (normal, with one parent), adding all the changes from the merged branches. If you make a commit after merge --no-commit, then it will be a normal merge commit, with multiple parents, and all merged patches can be found in the history separately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question