tags:

views:

72

answers:

1

On github, after I fork a project, modify it, then submit my pull request, it seems that I have to delete and re-fork in order to stay current with any changes made after my pull request is honored.

It seems tedious to have to keep deleting the repo to keep it current. Is there some way to keep it current without deleting and re-forking?

+2  A: 

You should add the original project as a remote to your working copy. Then you can pull changes from the original repository and push them to your forked repository. The commands for this look something like:

git remote add upstream <original repo url>
git pull upstream master
git push origin
Geoff Reedy