Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resetting git config

Tags:

git

While trying to trouble shoot another problem, I entered this line of code: git config --global http.postBuffer 157286400. Now when I push git will compress objects, write objects, display the total, then pause for 30 seconds or more. I was hoping to reset the http.postBuffer but wasn't sure how.

like image 906
rharding Avatar asked May 25 '18 13:05

rharding


1 Answers

To unset a global configuration setting in git you would run the following kind of command:

git config --global --unset X

where X is the name of the setting, so in your case you should be able to remove the setting by doing this:

git config --global --unset http.postBuffer

Also be aware that the global git settings are stored in a .gitconfig file in your "HOME" directory. This would similar to C:\Users\<username> on Windows and ~/ on *nix operating systems. This is just a normal text file so you could also find the offending setting in there and just edit it out.

like image 87
Lasse V. Karlsen Avatar answered Oct 19 '22 20:10

Lasse V. Karlsen