Max Koretskyi
Max Koretskyi

Reputation: 105547

Add multiple option values for git config option

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

Answers (1)

Eldad Assis
Eldad Assis

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

Related Questions