Git記住賬號密碼


git保存用戶名密碼的方式

1、設置記住密碼(默認15分鍾):

git config --global credential.helper cache

git config credential.helper cache

2、如果想自己設置時間,可以這樣做:

git config credential.helper 'cache --timeout=3600'

這樣就設置一個小時之后失效

3、長期存儲密碼:

git config --global credential.helper store

git config credential.helper store

4、增加遠程地址的時候帶上密碼也是可以的。(推薦)

http://yourname:password@git.oschina.net/name/project.git

git push 超過100M解決辦法

git config http.postBuffer 524288000(500M)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM