Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undo settings changes for git config --global branch.autosetuprebase always

Tags:

git

I am learning how to work with pull requests in a team environment. This is a setting I configured, but am not sure it is the best way to go about it. How can I cancel / change it?

like image 589
Tishpr Avatar asked Oct 25 '25 04:10

Tishpr


1 Answers

While the answers given are correct that you can simply edit your .gitconfig file to remove the setting manually, it's also possible to remove a setting via the command line.

git config offers a --unset option which, as the name suggests, unsets a setting to its initial value. Take a look at the documentation.

In your case such a command could look like this:

git config --global --unset branch.autosetuprebase
like image 177
Sascha Wolf Avatar answered Oct 27 '25 18:10

Sascha Wolf