首页 > 其他 > 详细

git 设置存储用户名与密码

时间:2016-05-21 14:29:24      阅读:183      评论:0      收藏:0      [点我收藏+]

新工作,新环境,旧电脑,旧代码环境。

git是没有记录密码用户名的,于是乎只能自己设置,在命令行设置咋设置,代码如下。。

git config --global user.name "myusername"
git config --global user.email "myusername@myemaildomain.com"
git config --global credential.helper cache


但是最后一行 cache不是windows 下的,于是乎运行总是报错,
git: ‘credential-cache‘ is not a git command. See ‘get --help‘.
对就它,老报这个问题,咋整,要用win下边的,

有人用:
git config --global credential.helper winstore

用这个解决问题了,我的还是不行。就试了下边这个

git config --global credential.helper wincred


这个就解决了。


最终是因为版本不对,命令才不同。。。。。吆,我去。。。还有这问题,所以建议大家多试试。


git 设置存储用户名与密码

原文:http://www.cnblogs.com/qianshui/p/5514662.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!