Reputation: 3417
I've forked a repository, and made some changes. Now, the repository I originally forked has had updates, and I want to make some more changes and put in a pull request. My question is, how can I merge what I've done so far with the original repo that I forked?
Upvotes: 0
Views: 37
Reputation: 6311
I normally add the original repository as another remote, so I can pull in changes easily.
For example, say I forked the node.js express project: expressjs/express -> sankethkatta/express. I would do:
$ git clone [email protected]:sankethkatta/express.git
$ git remote add upstream [email protected]:expressjs/express.git
Now when I need to pull in changes, I simply do:
$ git pull upstream master
Upvotes: 1