Will need to enter a user name and password each time to solve the git pull, commit code

  In development, we often need the code by git pull and submit frequently enter a user name and password will be a great deal of trouble to introduce the following resolve are required to enter each time git pull, submit your username and password codes Methods.

  

  It is as simple as two steps can be achieved:

  1. In ~ / .gitconfig more than a directory file, used to record your password and account

git config --global credential.helper store

  2. once again last entered the correct user name and password, you can successfully recorded, this is the last trouble you!

git pull

  

 

Guess you like

Origin www.cnblogs.com/belongs-to-qinghua/p/11743405.html