Thursday, April 30, 2020

How to save Username and Password in GIT Bash

First Run Below Command From GIT Bash (Remove --global if you want to save credentials for current project only)


git config --global credential.helper store
Now run below command and provide username/password (which will be remembered)
git pull
Provide a username and password and those details will then be remembered later. The credentials are stored in a file on the disk, with the disk permissions of "just user readable/writable" but still in plaintext.

3 comments:

  1. Great written. I am learning these GIT based things to go beyond pull/push.

    ReplyDelete
  2. Nicely you explained everything in your article. Thanks for your information, this is nice and helpful… Definitely going to share this article to my friends.
    Germany VPS Hosting

    ReplyDelete
  3. Your article is very good about How to save Username and Password this article is help to every one because everybody forget password this platform is good for remember password and username and i surely share this article to my friends. I was searching this type of information and i get it. If anyone wants to grow your website then buy a cheap USA VPS for hosting service

    ReplyDelete