Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I commit with no fast forward option (--no-ff) in SourceTree?

I'd like to preserve merge commits even if there was no change in the originating branch since than.

Is there such an option in Atlassian SourceTree? I just can't find it at the first sight.

like image 547
Geri Borbás Avatar asked May 11 '14 00:05

Geri Borbás


People also ask

When should I use git no FF?

During situations when you require a merge commit during a fast forward merge for record-keeping purposes, you will execute git merge with the --no-ff parameter. This command merges the specified branch int the command into the current branch, but always performs a merge commit (even if it was a fast-forward merge).

Does a fast forward merge create a commit?

Note that fast-forward updates do not create a merge commit and therefore there is no way to stop those merges with --no-commit. Thus, if you want to ensure your branch is not changed or updated by the merge command, use --no-ff with --no-commit.


1 Answers

Ahh, got that. There is a "Do not fast-forward when merging, always create commit" option in preferences.

enter image description here

like image 142
Geri Borbás Avatar answered Sep 29 '22 22:09

Geri Borbás