20

When I make changes in my ~/.gitconfig file I find they are only reflected if I restart my computer.

Is there a command to "refresh" git so that the changes in the ~/.gitconfig file are reflected without restarting my device?

This problem is on a Mac (OS X 10.9.4), but it would be great if there is an answer that is git specific and will work across all platforms.

2
  • ~/.gitconfig should be read every time you start git. Are you using the git command line utility or some other app for git usage? – mtak Aug 18 '14 at 9:25
  • 1
    @mtak I am just using git from the command line – My Head Hurts Aug 18 '14 at 9:28
13

use:

git init

It will reload ~/.gitconfig

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.