Git tips: Difference between revisions

From OLPC
Jump to navigation Jump to search
(added link for general git manual)
mNo edit summary
Line 20: Line 20:


The general git user manual can be found here: [[http://www.kernel.org/pub/software/scm/git/docs/user-manual.html git user-manual]]
The general git user manual can be found here: [[http://www.kernel.org/pub/software/scm/git/docs/user-manual.html git user-manual]]

[[Category:Git]]
[[Category:Tips]]

Revision as of 11:34, 24 August 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
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]