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秒,两个小时。