DEV Community

Cover image for Changing git credentials to your local computer
mbabazi diane
mbabazi diane

Posted on

Changing git credentials to your local computer

  • Have you ever encountered this error while pushing to remote github" remote: Permission to git.username/*******.git denied to "another username". fatal: unable to access 'github.URL': The requested URL returned error: 403 "
  • like when you are trying to push to another github which is not assigned to your local computer.

Here's the solution(for windows):

  1. First of all you have to go to your control panel > user accounts > Credential Manager > windows credentials.
  2. Then check the saved git credentential and remove them.
  3. After that go ahead and create new credentials as usual.
  4. git config --global user.name "Your Username"
  5. git config --global user.email "Your email"

Once you're done you can go ahead and push your work.

Top comments (0)