Git

向github push时免去输入用户名及密码

2017-07-16  本文已影响13人  lion1989

1 git config --global credential.helper store
2 下一次push时输入一次用户名密码
3 之后每次都可以自动push

$ git config --help查看这个选项信息

   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.
上一篇 下一篇

猜你喜欢

热点阅读