2

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

Angelo
  • 407
  • 8
  • 18

1 Answers1

4

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
Andrew C
  • 13,845
  • 6
  • 50
  • 57