Skip to content

Instantly share code, notes, and snippets.

@ankitsejwal
Last active July 1, 2024 11:38
Show Gist options
  • Save ankitsejwal/559a734b6e2000eef86dc10ceb767b12 to your computer and use it in GitHub Desktop.
Save ankitsejwal/559a734b6e2000eef86dc10ceb767b12 to your computer and use it in GitHub Desktop.
How to save username and password in git

Save credentials:

$ git config credential.helper store
$ git pull

#provide user-name and password and those details will be remembered later. The credentials are stored in the disk, with the disk permissions.

if you want to change password later:

$ git config credential.helper store 
$ git pull

#provide new password and it will work like before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment