Git push permission and error 403

Asked

Viewed 16,273 times

9

I’m trying to push to my repository, but git always gives me this error:

remote: Permission to danielswater/social.git denied to Michelleg-. fatal: Unable to access 'https://[email protected]/user/social.git/': The requested URL returned error: 403

I don’t know what else to do, in gitconfig, this user "Michelleg" doesn’t show up. I’ve also tried to do the git config --global user.name, but none of that worked. Would anyone know how to fix this?

Note: I’m using Git on Windows

  • Maybe you need to put the password next to the user, example: https://usuario:[email protected]/usuario/social.git. I suggest you set up ssh on your machine, so it’s simpler.

  • Also, I haven’t & #Xa;I’ve tried to uninstall Git, removed all the files and nothing. I’ve tried cloning the project again, and nothing

  • This machine is yours or the company’s?

  • This machine is mine. I remember that I added this user to be able to do a trampo p this person, but now I can’t remove. In gitconfig, it doesn’t even show up, my user does show up

  • You added as ssh?

  • No, no ssh even

Show 1 more comment

2 answers

8

Problem solved. For that, I edited Github credentials on Windows.

If you are on Windows 7, you can go this way:

Dashboard User Accounts and Family Security Credential Manager

At the end, you will find the item "Generic Credentials" with the link of Github or Gitbucket or both Ai just click on the arrow and edit the username and password.

  • 3

    I’m having same problem in Windows, could you explain me step-by-step to see if I can fix here? Thanks

  • Guilherme, if you are on Windows 7, you can go this way: Dashboard User Accounts and Family Security Credential Manager At the end, you will find the item "Generic Credentials" with the link to Github or Gitbucket or both Then just click on the arrow and edit the username and password

0

Check the repository for ADMIN privileges. If you are for example like READ, you can only pull.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.