2

As many other, when I use git push I get the next error:

remote: Permission to mmistakes/minimal-mistakes.git denied to MyName. fatal: unable to access 'https://github.com/mmistakes/minimal-mistakes.git/': The requested URL returned error: 403

I´m working in Windows, I have git 2.22. I tried:

  1. Running the following two commands in the terminal, replacing the obvious things:

git config --global user.name "Your Name Here" git config --global user.email "Your Email Address Here"

  1. This one "How can I change the user on Git Bash?"

  2. Deleting the Windows Credential

  3. Adding a ssh keys to Github

But non of those things work for me.

LizUlloa
  • 172
  • 3
  • 9
  • .ssh keys are irrelevant if you're accessing over HTTPS. Use the `git@github.com` URL if you want to use SSH. – o11c Jun 22 '19 at 23:03
  • Are you using your username and password to push, or are you using a token? Do you have two-factor authentication set up? – bk2204 Jun 23 '19 at 00:20

2 Answers2

1

403 is a forbidden error code... so as long as you are sure your git user name and password are accurate, you then must make sure you are an authorized user on the GitHub repo check here for more details on what permission you need.

Dragonman117
  • 478
  • 4
  • 13
0

Unless you are mmistakes on GitHub, you won't be able to push directly to this repository, unless mmistakes declares you as a collaborator.

Consider forking mmistakes/minimal-mistakes.git, and you will be able to push back (HTTPS or SSH) to said forked repository.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250