📌  相关文章
📜  如何停止 git 询问用户名和密码 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:52.593000             🧑  作者: Mango

代码示例2
// For permanently stop git from asking credentials
$ git config credential.helper store
$ git push https://github.com/repo.git

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

// User can also specify caching expire
$ git config --global credential.helper 'cache --timeout 7200'
// After enabling credential caching, it will be cached for 7200 seconds (2 hours).