好好爱自己!

git 提交到github时不用每次都输入用户名,密码

Permanently authenticating with Git repositories,

Run following command to enable credential caching.

$ git config credential.helper store
$ git push https://github.com/repo.git

Username for 'https://github.com': <USERNAME>
Password for 'https://USERNAME@github.com': <PASSWORD>

Use should also specify caching expire,

git config --global credential.helper 'cache --timeout 7200'

After enabling credential caching, it will be cached for 7200 seconds (2 hour).

posted @ 2016-12-12 19:38  立志做一个好的程序员  阅读(1622)  评论(0编辑  收藏  举报

不断学习创作,与自己快乐相处