1 git config --global credential.helper store
2 下一次push時(shí)輸入一次用戶名密碼
3 之后每次都可以自動(dòng)push
$ git config --help查看這個(gè)選項(xiàng)信息
credential.helper
Specify an external helper to be called when a username or password credential is needed; the helper may consult
external storage to avoid prompting the user for the credentials. Note that multiple helpers may be defined. See
gitcredentials(7) for details.