Angelo
Angelo

Reputation: 427

git remote.branch.receivepack= git receive-pack

I need to remove this from my git config When I run

git config --list

I get

stufff
stufff
remote.live.receivepack=git receive-pack
more stuff

I need to remove this since that is not the name of my remote, if I delete that entry from the config so that I am not pulling from that remote. I would like to remove that entry from the config all together

Upvotes: 2

Views: 629

Answers (1)

Andrew C
Andrew C

Reputation: 14853

git config --list will list results from up to 3 config files.

repo/.git/config - the repository config file  
~/.gitconfig - the global config file for your user  
/etc/gitconfig - the system config file for the machine you are on

Use '--unset' to delete a config entry. With no options, git config --unset operates on the repository config. Use '--global' to specify your user config, and '--system' to specify the system config.

For your specific instance

git config --global --unset remote.live.receivepack

Upvotes: 4

Related Questions