I cloned a project, created a new local branch and started working on it making atomic commits along the way. When I tried to push the code back to the repo I got an “access denied” error. I’ve been talking back and forth with the person who owns the repo and he went and added me as a member. I accepted the invite however I still get the 403 error when trying to push the code. I previously mentioned to him that maybe I need to generate an SSH token for him to add but he said I should be able to push the code without going through all of that. When I tried to push the code I used git push -u origin myBranchName
I even tried it with the --setUpstreamOrigin
flag. I asked if he gave my account permission to write to the repo and he said he indeed did.
Does anybody know why this is happening and what we need to do to get this to work?