Save Credentials for Remotes in Git
Last updated
Last updated
SSH Key based login for Git works most of the times, except for the time when we add a HTTPS based remote (obviously with access token!), then it's annoying to put in your access token every single time, and that we can fix with , example given below -
Note: --global
argument tells Git to set this globally; credential file is stored ~/.git-credentials
.
Source:
Reference: