merge-branch icon indicating copy to clipboard operation
merge-branch copied to clipboard

Avoid creating merge commit

Open piyushchauhan2011 opened this issue 3 years ago • 7 comments

I want to know if it's possible if we can avoid creating merge commit and do a fast forward with some option. Right now it creates two commits

Screen Shot 2564-11-14 at 16 35 47

e.g. https://github.com/piyushchauhan2011/bug-free-palm-tree/commits/staging

piyushchauhan2011 avatar Nov 14 '21 09:11 piyushchauhan2011

Yes I would like to know this too. For example when there is no changes to be applied it will create an empty commit that does nothing.

andrewfenn avatar Dec 20 '21 13:12 andrewfenn

I have made a pull request that skips merges for fast-forwards https://github.com/devmasx/merge-branch/pull/28

andrewfenn avatar Jan 26 '22 05:01 andrewfenn

It would be handy to have a configuration like:

allow_fastforward: true

peterlauri avatar Feb 24 '22 18:02 peterlauri