Git tips: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:


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

Revision as of 19:51, 27 July 2007

Create a remote branch

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

Work on a remote branch

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

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

Apply changes from master

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