码迷,mamicode.com
首页 > 其他好文 > 详细

git删除掉已经保存的用户名密码

时间:2017-09-11 22:37:00      阅读:389      评论:0      收藏:0      [点我收藏+]

标签:last   iss   mis   his   mac os x   tco   pos   run   off   

以保存的用户名密码删除,先找到变量存在的位置:

git config -l

To help track down the setting, I‘d try to use:

git config --local credential.helper
git config --global credential.helper
git config --system credential.helper

The first one checks the local repo config, the second is your ~/.gitconfig, and the third is based on where git is installed. Depending on which one comes back showing the credential helper, you can try using the equivalent --unset option:

git config --local --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper

The last one may not work if you don‘t have proper permissions. So you may need to run the last one under sudo for it to work correctly. FWIW, you may have installed for the pre-built git images for Mac OS X. If you cat /usr/local/git/etc/gitconfig, you‘ll see that it does set up the credential helper for you. So the last command above would help fix that problem.

git删除掉已经保存的用户名密码

标签:last   iss   mis   his   mac os x   tco   pos   run   off   

原文地址:http://www.cnblogs.com/python-zen/p/7507210.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!