On Jan 7, 1:22 am, David Aguilar <dav...@gmail.com> wrote:
> 1. git remote add upstream git://github.com/upstream/project.git
> 2. git fetch upstream
> 3. git reset --hard upstream/master
> 4. git push origin +master
> 1. Add a reference to the repo you forked from
> 2. Fetch its branches
> 3. Reset your current branch so that it equals upstream's master
> branch. Careful, this will ditch any and all changes you've
> 4. Push your master branch to your fork (origin).
> The "+" tells it to force the push in case you maybe have
> pushed stuff before and truly want to ditch it.
> Try it without the "+" first since if you haven't pushed
> anything it isn't required (forcing things is bad, in
> At that point you your fork's master branch will be equivalent
> to upstream's master.
Thanks. That makes sense.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at