1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/get-started/getting-started-with-git/why-is-git-always-asking-for-my-password.md
Emily Gould 1e5372ac79 Move Getting started category to top-level doc set (#20008)
* Move category to top-level doc set

* Move doc set to the top and update short title

* Undo package-lock changes

* updated hardcoded refs in tests

* Update test

* Fix hardcoded link in test

Co-authored-by: Sarah Schneider <sarahs@github.com>
2021-06-18 17:13:04 +00:00

1.7 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
/github/using-git/why-is-git-always-asking-for-my-password
/github/getting-started-with-github/why-is-git-always-asking-for-my-password
/github/getting-started-with-github/getting-started-with-git/why-is-git-always-asking-for-my-password
free-pro-team enterprise-server github-ae
* * *

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 {% data variables.product.product_name %} credentials every time you pull or push a repository.

{% data reusables.user_settings.password-authentication-deprecation %}

You can avoid being prompted for your password by configuring Git to cache your credentials for you. Once you've configured credential caching, Git automatically uses your cached personal access token when you pull or push a repository using HTTPS.

Further reading