How to store git credentials in cache

We can use following commands to store git credentials in cache

Windows

git config --global credential.helper wincred
git pull origin <enter your branch>
Username: <type your username>
Password: <type your password>

Linux

git config credential.helper store
git pull origin <enter your branch>
Username: <type your username>
Password: <type your password>

Also you can use following command for help

$ git help credentials

Specially for Fedora(Worked for me)

git config --global credential.helper gnome-keyring
git pull origin <enter your branch>
Username: <type your username>
Password: <type your password>

Leave a Reply