Text

Installing PostgreSQL 8 via HomeBrew

The PostgreSQL formula for homebrew has already been updated to version 9.

Thankfully, with a little help from google, I found Adam Vandenberg’s 8.4 formula.

brew update
brew install http://github.com/adamv/homebrew/raw/versions/Library/Formula/postgresql8.rb
Text

Updating a Forked GitHub Project

Have you ever forked a project on github and later wanted to update it with more recent bits? If so, this here is what you need to do - Forking a project.

For those in a hurry, here is the basics:

  1. git remote add upstream git://github.com/author/project-name.git
  2. git fetch upstream
  3. git merge upstream/master

Step three is the part I keep forgetting to do, but now that I have taken the time to write it out, I am hoping I will just remember it. :)

Update:

Ken Robertson IM’ed me another solution or two:

…you can do “git pull upstream” instead of git fetch to skip step 3, and you can also skip step 1 by doing “git pull git://github.com/author/project-name.git master”

I kind of like step #1 since it means I don’t have to remember the url, but otherwise, this is nice to know.

Tags: git github