git push每次都要填用戶名密碼問題
git push,需要用戶輸入username and password。這是因爲Github採取了two-factor authentication,雙重驗證方式來保證安全。
如果不想每次輸入用戶名和密碼,則可以使用credential.helper(憑證助手)來記住Username和Password。
$ git config credential.helper store
$ git push origin master
# 然後輸入用戶名和密碼
git config --global credential.helper 'cache --timeout 7200' # 這裏設置賬號信息被記住7200秒,兩個小時。