Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

How to run a Git command with a config specified in a separate file? [duplicate]

$
0
0

This question already has an answer here:

I can run a Git command with -c <name>=<value> switch to specify a single configuration parameter, e.g.

git -c user.name="John Doe" commit 

Now I have a config file with multiple options, which I want a particular command to use in the same way. How can I achieve this?

Edit: I don't want to specify a custom global .gitconfig. I want to use a file to override/add some config options for a particular Git command.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>