I’ll leave this here in case you want to create a password cache.
Why does Git always ask for my password?
If Git asks you for a username and password every time you try to interact with Github, you’re probably using the clone URL HTTPS to your repository.
Using a remote HTTPS URL has some advantages: it is easier to set up than SSH, and usually works through strict firewalls and proxies. However, it also prompts you to enter your Github credentials each time you pull or push into a repository.
You can configure Git to store your password for you.
If you would like to set this up, follow the steps below;
Caching your Github password in Git
If you are cloning Github repositories using HTTPS , you can use a credential helper to tell Git to remember your Github username and password each time you talk to Github.
If you are cloning Github repositories using SSH, then you authenticate using SSH keys instead of a username and password. To help set up an SSH connection, see Generating an SSH Key .
Tip: You need Git 1.7.10 or later to use the Git helper
credential.
The credential helper is included with Github Desktop. The app also offers a Git shell, so you won’t need to install and configure Git manually. For more information, see " Introduction to Github desktop ."
If you prefer to work with the command line, you can also install a native Git shell, such as Git for Windows . With Git for Windows, running the following on the command line will store your credentials:
git config --global Credential.helper wincred
You use Git for Windows?
– Marco Souza
@Dotnet no, use Linux (Ubuntu).
– Wallace Maxters