git remote.branch.receivepack= git receive-pack

此生再无相见时 提交于 2021-02-10 08:36:09

问题


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


回答1:


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


来源:https://stackoverflow.com/questions/26207003/git-remote-branch-receivepack-git-receive-pack

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!