Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git : reload .gitconfig file from the bash console

I want to quickly test my changes in my user .gitconfig file without closing and reopening the console. Is there a way to load it again, much like source .bashrc would reload the bash config ?

EDIT : source ~/.gitconfig didn't work, not that this surprises me, but just saying.

like image 989
Charles Avatar asked Dec 09 '25 05:12

Charles


1 Answers

Git automatically reads the .gitconfig file each time you run a Git command. Therefore, any changes you make to the file will take effect immediately without needing to reload or restart anything. Just save your changes, and the next time you run a Git command, the updated configuration will be used.

like image 96
Abner Rizzi Avatar answered Dec 10 '25 18:12

Abner Rizzi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!