How do I ensure Git doesn't ask me for my GitHub username and password?
Problem
I am working with a repo on GitHub and everytime I try to push something, it asks for my GitHub username and password. I don't want it doing that. I tried the instructions on setting your email in Git, namely set up the Git variables github.user and github.token, but that didn't make any difference. I don't understand why this is happening.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How do I ensure Git doesn't ask me for my GitHub username and password?
Had a similar problem today: I messed things up in my working copy, so I decided to rename the directory and clone my project again from github. But after doing that, I had to enter my password to do any pull/push request, instead of entering the passphrase just once as I used to. That was because today I used the https protocol to clone the project! To check what protocol you're using just run and look at the line starting with 'remote.origin.url'. To switch protocols: and should be replaced w…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix