Git tips

From OLPC
Revision as of 14:48, 3 October 2007 by Morgs (talk | contribs) (remember to cd sugar or you will be trying to branch sugar-jhbuild)
Jump to: navigation, search

Create a remote branch

git clone git+ssh://dev.laptop.org/git/sugar
cd sugar
git branch trial-3
git push origin trial-3

Work on a remote branch

git clone git+ssh://dev.laptop.org/git/sugar
git checkout --track -b trial-3 origin/trial-3
git pull

You can now use commit, push and pull as usual.

Apply changes from master

git-cherry-pick <commit-id>
git push


The general git user manual can be found here: [git user-manual]