設置記住密碼(默認15分鐘):
一、在bash裏面設置
git config –global credential.helper cache
如果想自己設置時間,可以這樣做:
git config credential.helper ‘cache –timeout=3600’ 這樣就設置一個小時之後失效
長期存儲密碼:
git config –global credential.helper store
二、通過git setting設置
相信你應該裝了 tortoisegit 這個工具了吧,沒有的同學安裝一個,很方便實用。