when I git push always asked for username & password

19 Views Asked by At

I recently changed my username on github. Whenever I try to git push changes on old repos I am always asked for my username and password.

NOTE THAT BEFORE I CHANGED PASSWORD I WASN'T ASKED FOR USERNAME AND PASSWORD

How can I get rid of this prompt? and git push without being asked for username and password.

its asking for username

I dont want to constantly putting username and password.

1

There are 1 best solutions below

4
Mj Carnaje On

Update your credentials

git config --global user.name "YourNewUsername"
git config --global user.email "YourNewEmail"