This question has already been answered:

There is a closed repository. To do pull you need to enter a password. Everything is as usual, first git pull origin master , and then a password request from me.

So, how to fit in one line with git pull origin master password, so that he then I was not asked?

Reported as a duplicate member Nick Volynkin 4 Aug '16 at 6:39 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • git config --global credential.helper wincred - Urmuz Tagizade
  • This is if you have Windows - Urmuz Tagizade
  • I have Linux ... - faoxis

2 answers 2

If you are using Windows , the command will help:

 git config --global credential.helper wincred 

In the case of Linux :

 git config credential.helper store git push 

After you need to specify the username and password and all.

You can also cache lifetime in the following way:

 git config --global credential.helper 'cache --timeout 3600 

If you want to clear the cache manually, use the command:

 git credential-cache exit 

    Can just set up the public key? Then no passwords are needed.