Home » How to save Git password globally

How to save Git password globally

Let’s start the discussion about How to save Git password globally in following methods.


Save Git password global

Use the below commands to specify and store the username and password globally. git config command is used to store the login credentials. Refer the below commands.

git config --global user.name "your username"
git config --global user.password "your password"

git config --global credential.helper store

git config –global credential.helper store

Git-credentials, which is located in your home folder, has a URL to a repo that includes your username and password, similar to git:/username:password@server/git/repo.

WARNING: THIS IS A SAVED PLAIN TEXT PASSWORD. If you can’t use ssh keys, try “git config —global credential. helper cache.”

git config --global credential.helper "cache --timeout=3600"

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to restart audio in ubuntu