C
C#16mo ago
pejavu

✅ Having trouble doing a pull request on Github.

We have to use VS for this. I cloned the repo, did the changes for the assignment, committed in my local rep and now I try to push it to the teacher's repo but it says access denied, ok understandable. Do I have to create my own remote repo(how do I do it through VS?) and then do a pull request through the website(or through VS?)? Sorry I am feeling lost.
5 Replies
Denis
Denis16mo ago
You can't do it all through vs You have to fork the repository Commit to your forked repository And create a pull request from your fork to the original Just to clarify, are you attempting to push to master/main or your own branch in their repository? If so, that is probably the true problem here. You should create your own branch Main/master branch are usually protected and can be written to only via a pull request
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
pejavu
pejavu16mo ago
I have cloned through VS their repo, made a copy of the branch(so now I have two) I tried pushing them both with zero success. So. I had to use GH web to fork the original and then make changes in that and then request pull through web? But what is the clone function in in VS then. If try to push it using the other branch then it gives "Error encountered while pushing to the remote repository: Git failed with a fatal error. Git failed with a fatal error. unable to access 'https://github.com/xxx/': The requested URL returned error: 403
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
pejavu
pejavu16mo ago
I did not solve it, I just made a new fork, edited and made pull request through web. For just leaving it till next time closing