To simplify viewing when object branches are merged with the master, you can use the Git --no-ff option when merging your function branch with the master.
One way to do this without having to enter --no-ff is to completely disable anti-aliasing of fast forwarding to the master:
git config branch.master.mergeoptions --no-ff
However, this is inconvenient, since it also prevents fast forward merging when simply merging upstream changes in master to a local copy of the master (for ordinary git pull s, commit commits are created.)
Is there a way to configure Git to prevent switching from quickly switching to master only when merging function branches into master, so that when git pull executed from master fast-forward is allowed, but merge commits are always created when merging function branches? Or explicitly uses --no-ff only way to accomplish this?
source share