赞
踩
运行:
git config --global credential.helper store
打开~/.gitconfig文件,会发现多了一项:
[credential]
helper = store
此时,再次push 输入用户名和密码,以后再次push即可免去输入用户名和密码
git clone 时 ,权限不够。
如 fatal: unable to access : The requested URL returned error: 403
可能原因是,你之前在本电脑使用过git.
但是以前和现在又不是同一个账户。所以当你现在使用 git clone url 时 ,默认使用以前的账户信息。所以出现没有权限的状况。
解决方法:
重置本机保留的git config 信息。
运行:
git config --system --unset credential.helper
然后你再次克隆的时候,就会让你输入用户名和密码了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。