Reputation: 105547
I can add manually the following to the git config:
[branch "master"]
remote = origin
mergeOptions = --edit --no-ff
However, when I try to add the same using command line like this:
$ git config branch.master.mergeOptions --edit --no-ff
Only the first --edit
values are added to the config. How to add both --edit
and --no-ff
?
Upvotes: 0
Views: 1408
Reputation: 11055
Just wrap the --edit --no-ff
with quotes:
$ git config branch.master.mergeOptions "--edit --no-ff"
This will make it work.
I hope this helps.
Upvotes: 2