+1 vote
1 view
in Devops and Agile by (25.5k points)

I am using Git Bash on Windows 7. We are using GitHub as our repository origin.

Every time I push or pull I have to provide user and password credentials. I know that my SSH keys are set up correctly, otherwise, I would not be able to access the repository. (That is, once I enter my credentials the push/pull works correctly.)

I have entered

git config --global user.name myusername

git config --global user.email myemail

git config --global github.user myusername

git config --global github.token mytoken

But I am being asked for credentials each and every time I push/pull.

1 Answer

+1 vote
by (42.6k points)

For this question, if you want to login without giving credentials on each and every pull you could use the ssh link instead of https url. https url is used then it will ask for the credentials when you push/pull.

To check the url you can run:

git remote show origin 

or 

git config -e

or 

check the file .git/config. if there are any changes regarding url changes it then you can able to push or pull without credentials.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...