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
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

猜你喜欢

转载自www.cnblogs.com/light-zhang/p/9066380.html