Syncing a Fork with Upstream on Github

So, here’s a bookmark-as-a-reminder to future me. I was contributing to a little application called Curtail (nee ImCompressor) and in the time between forking the original project and submitting my pull request, the entire project had changed names, icons and the whole she-bang. I wasn’t sure if you could rebase a fork off of upstream on Github, but it turns out you can fairly easily through the commandline (I couldn’t find a way to do the same through the website).

In short, fire up a terminal, then:

1.) Set a new remote as, say, upstream

git remote add upstream https://github.com/USERNAME/PROJECT

2.) Fetch any upstream changes

git fetch upstream

3.) Merge upstream changes with your current branch

git merge upstream/BRANCH

4.) Profit?

Comments?

Nope. Don't worry about leaving them here, instead hit me up @TRST_Blog and share your thoughts.

What is this Place?

This is the weblog of the strangely disembodied TRST. Here it attempts to write somewhat intelligibly on, well, anything really. Overall, it may be less than enticing.