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
posted @ 2018-05-21 11:33  light-zhang  阅读(366)  评论(0编辑  收藏  举报