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)