2014-10-05 99 views
1

我需要從我的混帳配置 當我運行混帳remote.branch.receivepack =混帳收到包

git config --list 

我得到

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

我需要刪除這一點,因爲刪除此是不是我的遙控器的名稱,如果我從配置中刪除該條目,以便我不從該遙控器拉。我想從配置中刪除該條目一起

+0

您可以直接編輯'git的/ config'文件,並刪除有問題的條目。 – Jubobs 2014-10-05 20:44:57

+0

或'git config --unset remote.live.receivepack' – 2014-10-05 20:47:27

+0

它沒有出現在我的本地遠程或克隆遠程的配置中。我記得設置git config --global remote.live.receivepack =「git receive-pack」。 – Angelo 2014-10-05 20:47:47

回答

3

git config --list將列出最多3個配置文件的結果。

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 

使用'--unset'刪除配置條目。沒有選項,git config --unset在存儲庫配置上運行。使用'--global'指定用戶配置,'--system'指定系統配置。

對於您的具體實例

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