+3 votes
1 view
in Devops and Agile by (20k points)
edited by

I want to use a push and pull automatically in GitExtension, without entering my user and password in a prompt, every time.

So how can I save my credentials in GIT?

1 Answer

+4 votes
by (28.4k points)
edited by

First run the following command: 

$ git config credential.helper store

All you need to do now is pull.

$ git pull

Now you have to provide a username and password, remember that these details will then be remembered later. 

Note that this will store your username and password in a plain text file at ~/.git-credentials. Anyone can open it and read it.

For better understanding about these commands go through the following crash course on git that will help you to understand git well

 

by (25.5k points)
To Set the cache to timeout after 1 hour (setting is in seconds) you could use this command as well after turning on the credential helper.
git config --global credential.helper 'cache --timeout=3600'
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...