Created
April 29, 2009 10:17
-
-
Save johnantoni/103695 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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