Git does not give permission to upload files to a new repository.

fatal: unable to access ' https://github.com/username/appname.git/ ': The requested URL returned error: 403 I am writing

git remote -v gives everything correctly:

origin https://github.com/username/appname.git (fetch) origin https://github.com/username/appname.git (push)

but if I try to do: git push origin master gives the above described error 403 with access rights. Perhaps the fact is that during the initial setup I put some git config --global user and git config --global user.email and try to fill it with an account created on another PC. on another pc there is a git too, and there I registered other git config. If this is the problem, please tell me how to change the user's initial settings, if not what, then what? Thank you in advance.

  • certificate generated on a new computer? or moved from the previous one? First, check it out - ssh -T git@github.com - run in the console. If you see the correct name in the answer - with certificates ok. - KoVadim
  • Certificate did not tolerate. - Sergey
  • in the console entered: "ssh" is not an internal or external command. - Sergey
  • 2
    Just try to make pull in the console - KoVadim
  • one
    Yes, git pull . - ฿Š฿š฿ค฿˜

1 answer 1

I was helped by the git rebase origin/master command and then git push origin master

  • one
    How did this help you? Give a more detailed answer. - 0xdb