How do I avoid the specification of the username and password at every git push?

前端 未结 18 1811
我在风中等你
我在风中等你 2020-11-28 00:02

I git push my work to a remote Git repository.

Every push will prompt me to input username and password. I would

18条回答
  •  天命终不由人
    2020-11-28 00:32

    Just wanted to point out something about the solution said above several times:

    git config credential.helper store
    

    You can use any command that requires a password after this. You don't have to push. (you can also pull for instance) After that, you won't need to type in your username / password again.

提交回复
热议问题