Is is possible to enforce merges with the --no-ff
flag for git repositories on Github?
I need to keep the history with the extra merge commit, but I'm not sure if the Github merge UI will do this?
Thanks, Adam
Is is possible to enforce merges with the --no-ff
flag for git repositories on Github?
I need to keep the history with the extra merge commit, but I'm not sure if the Github merge UI will do this?
Thanks, Adam
One way is to add an alias to your gitconfig file:
[alias]
fmg = merge --no-ff
Then when you want to perform a merge, simply use your new alias as so:
git fmg <branch-to-merge>