0

I cloned a repo and created a new branch without problem.

When try to push changes to a new branch - getting error:

git push origin new-branch

fatal: unable to access 'https://github.....git/': The requested URL returned error: 403

What can be a problem and how to resolve it?

Thanks.

Joe
  • 11,983
  • 31
  • 109
  • 183
  • You don't have write access to the repo. The branch you created is probably only local. – Martin Apr 30 '18 at 14:41
  • Thanks. Should someone (e.g. Admin of this repo) give access particularly for me for this repo? – Joe Apr 30 '18 at 14:44
  • Did you clone or fork? – zero298 Apr 30 '18 at 14:44
  • Possible duplicate of [Pushing to Git returning Error Code 403 fatal: HTTP request failed](https://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed) – Joe May 03 '18 at 11:26

1 Answers1

1

You need to fork the repo first then clone your fork. Since you are not the contributor you will get 403 Error.

Kaouther Mefteh
  • 132
  • 2
  • 13