1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/github/using-git/why-is-git-always-asking-for-my-password.md
Jason Etcovitch caaee7a124 Update all files to use {% data %} (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00

1.4 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
Why is Git always asking for my password? If Git prompts you for a username and password every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository.
/articles/why-is-git-always-asking-for-my-password
free-pro-team enterprise-server
* *

Using an HTTPS remote URL has some advantages compared with using SSH. It's easier to set up than SSH, and usually works through strict firewalls and proxies. However, it also prompts you to enter your GitHub credentials every time you pull or push a repository.

You can avoid being prompted for your password by configuring Git to cache your credentials for you. {% data reusables.user_settings.password-authentication-deprecation %}

Once you've configured credential caching, Git automatically uses your cached personal access token in place of a password when you pull or push a repository using HTTPS.

Further reading