git push github 免输入账号和密码方法

git config --global credential.helper store

打开~/.gitconfig文件,会发现多了一项:

[credential]

  helper = store

此时,再次push  输入用户名和密码,以后再次push即可免去输入用户名和密码

posted @ 2018-09-05 16:59  $wanggang  阅读(2358)  评论(0编辑  收藏  举报