1

I have figured out how to make my own git command , but I want to be able to allow user saved settings required by my git command into git ~/.gitconfig file and later my git command read from the config file instead of having user to input each time the git command is executed.

Is there a simple way to read ~/.gitconfig file or do I have to parse read the content ?

1
  • 2
    what does this question have to do with python? Are you coding ? Show us your code. Commented Jan 25, 2014 at 5:22

1 Answer 1

3

Use git config --global. It is purpose-built for reading and writing settings to your .gitconfig.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.