git设置记住用户名和密码

命令行设置git是没有记录密码用户名的,于是乎只能自己设置,在命令行设置咋设置,代码如下:
git config --global user.name "myusername"
git config --global user.email"[email protected]"
git config --global credential.helper cache
但是最后一行 cache不是windows 下的,于是乎运行总是报错
git: 'credential-cache' is not a git command. See 'get --help'.
有人用:
git config --global credential.helper winstore
用这个解决问题了,我的还是不行。就试了下边这个
git config --global credential.helper wincred
这个就解决了

你可能感兴趣的:(git设置记住用户名和密码)