Why do GitHub HTTPS schemes always ask for my password?

I cloned a repo in a git hub through the https: // protocol to avoid configuring SSH key material. This is all good, but every time I click, it asks for my password. Is there a way to get git to cache my password?

+6
git github
source share
3 answers

You will see ssh-agent to save the password. There are ways to cache your password here .

+8
source

You may need GitHub credential caching for Smart HTTP. According to a blog post, it only works with Windows and OS X, so you should use the GIT protocol instead if you are running on a Linux or Unix workstation.

+1
source

Use the authentication token in the ~/.netrc , you can avoid entering a password.

Github recently added a marker function. Then go to settings / applications and create an access token. The syntax in netrc is single-line: machine github.com login <login> password <token> .

An even better feature, the token is designed to prevent users from using the account password to work on the project. Use only the password when working as an administrator, for example, create a new token or cancel the old token.

See another SO post for credential caching methods: Is there a way to skip password entry when using https: // github

0
source

All Articles