Spree Commerce

Try It Now

Pulling the Latest Changes into your Fork

Posted on May 23, 2008 by Sean Schofield

Just a quick writeup for those of you you who have a Spree fork and you want to grab the latest changes (since the point of your fork.) Run the following git commands from inside your local fork.

<p>git remote add spree-github git://github.com/schof/spree.git<br />
git checkout -b spree-official/master<br />
git pull spree-github master<br />
git checkout master<br />
git merge spree-official/master</p>

This creates a branch before merging. That’s the absolute safest way to do it. If there are conflicts and you don’t want to deal with them you can just switch back to your main branch and delete the spree-official/master branch.

The shortcut way to do this (with no special branch) is as follows

<p>git remote add spree-github git://github.com/schof/spree.git<br />
git pull spree-github master</p>

You can find this and other git cheats in the brand new Git Cheat Sheet.