DEV Community

Discussion on: Push to a forked pull request branch on GitHub—Am I doing this right?

Collapse
 
napoleon039 profile image
Nihar Raote

I actually haven't done this many times. Just 2 times IIRC. To explain what I do using your example -

I fork Andy's repo, then add the repo on my github:

git remote add myrepo https://github.com/napoleon039/repo

I then push the changes to my own repo:

git add . && git commit -m "Commit message" && git push myrepo master

And lastly, I go to github and do a pull request

This worked for me. I didn't know there were other ways to do this. I hope I can find better ways to push a pull request to a forked repo.