Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created April 29, 2009 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnantoni/103695 to your computer and use it in GitHub Desktop.
Save johnantoni/103695 to your computer and use it in GitHub Desktop.
branching how-to
----------------
1. grab the master
git clone git@github.com:indiehead/matilda.git
2. go into the master
cd matilda
3. create your branch
git push origin origin:refs/heads/matilda-lite
4. make sure you've got everything from master
git fetch origin
5. see your branch
git branch -r
6. start tracking your new branch
git checkout --track -b matilda-lite origin/matilda-lite
7. again make it's up to date
git pull
8. change something
touch README
9. commit it
git commit -m 'test my branch'
10. push your changes to the new branch
git push origin matilda-lite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment