Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.65 KB

why-is-git-always-asking-for-my-password.md

File metadata and controls

25 lines (21 loc) · 1.65 KB
title intro redirect_from versions shortTitle
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
fpt ghes ghec
*
*
*
Git passwords

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 {% data variables.product.pat_generic %} when you pull or push a repository using HTTPS.

Further reading