您的位置:首页 > 编程语言

Caching your GitHub password in Git

2016-02-18 00:00 375 查看
Turn on the credential helper so that Git will save your password in memory for some time. By default, Git will cache your password for 15 minutes.
Step 1. On the command line, enter the following:

git config --global credential.helper cache
# Set git to use the credential memory cache

Step 2. To change the default password cache timeout, enter the following:

git config --global credential.helper 'cache --timeout=3600'
# Set the cache to timeout after 1 hour (setting is in seconds)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: