git 设置存储用户名与密码

git config --global user.name "light-zhang"
git config --global user.email "****@sina.cn"
git config --global credential.helper cache

cache不是windows 下的,于是乎运行总是报错,
git: 'credential-cache' is not a git command. See 'get --help'.
windows:
git config --global credential.helper winstore

git config --global credential.helper wincred
linux:
git config --global credential.helper store

转载于:https://www.cnblogs.com/light-zhang/p/9066380.html

你可能感兴趣的:(git 设置存储用户名与密码)