Skip to content

Instantly share code, notes, and snippets.

@rouge8
Created July 15, 2013 15:12
Show Gist options
  • Save rouge8/6000741 to your computer and use it in GitHub Desktop.
Save rouge8/6000741 to your computer and use it in GitHub Desktop.
  1. First, you're going to create a new branch to track the new feature. First, sync up to make sure your local copy has the latest production version of the website:

$ cd ~/git/project $ git fetch origin $ git checkout staging $ git reset --hard origin/staging


Then create the new feature branch:

$ git checkout -b feature/FOO staging


(Make sure to replace `FOO` with a short name describing the new feature.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment