git push 缓存密码和用户名
Posted oxspirt
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git push 缓存密码和用户名相关的知识,希望对你有一定的参考价值。
https://stackoverflow.com/questions/6565357/git-push-requires-username-and-password
git remote -v
------------------------------------------------
Permanently authenticating with Git repositories
Run the following command to enable credential caching:
$ git config credential.helper store
$ git push https://github.com/owner/repo.git
Username for ‘https://github.com‘: <USERNAME>
Password for ‘https://USERNAME@github.com‘: <PASSWORD>
You 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).
以上是关于git push 缓存密码和用户名的主要内容,如果未能解决你的问题,请参考以下文章