1

When I run git push remote origin I have to give username and password. It is very important to make updated the remote repository when working in a team. For this reason I have to push when I modify/add something.

But, each time giving username and password is annoying.

2 Answers2

2
git config credential.helper store

then

 git pull

provide username and password and those details will be stored on disk.

Wantao Yu
  • 21
  • 2
1

You can use this command to store your credentials in cache:

git config credential.helper store

With this setting, next time you input your credentials, Git will remember them.

Warning: Git will store your passwords unencrypted, this might be dangerous! You could go for a SSH authentication instead, it would be more secure.

Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56