'Git BASH keeps asking for credentials when I push to new repo
I just created a new repository on GitHub but whenever I try to push from Git BASH to this repo it keeps showing a pop up window asking for my username and then another for my password.
The odd thing is that when I push to any of my existing repositories, I do not have this same problem. I checked the repository settings for my new repos as well as the .git/config file for each and they are the same as for the existing ones.
I am on a Windows 10 machine and have never had this problem in the past when creating new repos. I follow the basic steps listed on when creating a new repo on GitHub for adding the remote and pushing, etc.
I have tried a few things to try and fix this but the outcome doesn't change:
- I have set up a personal access token instead of the old password I was using before.
- I have removed the
helper = cacheline from my .gitconfig - I have tested this on multiple newly created (test) repositories and on multiple of my existing repositories. Always, the existing ones work fine and the new ones I need to add credentials.
Any idea what is causing this or how to solve?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
