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

添加圖中所示的內(nèi)容即可 ?[credential]? helper = store