Pregunta

Possible Duplicate:
Can I update a forked project, on git, to the original/master copy?

Let's say I fork a project, and then clone it down to my machine.

At this point, git pull, as well as git fetch and git rebase origin/branch_name, refer to my forked repository. If I wanted to rebase to the original repository's master, how would I go about doing this?

¿Fue útil?

Solución

Add the original repo as a remote

git remote add upstream git@github.com:<OriginalUser>/<OriginalRepo>.git

then rebase from there

git fetch upstream
git rebase upstream/master
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top