Git tips: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Update example for trial-3) |
||
Line 2: | Line 2: | ||
git clone git+ssh://dev.laptop.org/git/sugar |
git clone git+ssh://dev.laptop.org/git/sugar |
||
git branch trial- |
git branch trial-3 |
||
git push origin trial- |
git push origin trial-3 |
||
= Work on a remote branch = |
= Work on a remote branch = |
||
git clone git+ssh://dev.laptop.org/git/sugar |
git clone git+ssh://dev.laptop.org/git/sugar |
||
git checkout --track -b trial- |
git checkout --track -b trial-3 origin/trial-3 |
||
git pull |
git pull |
||
Revision as of 10:24, 17 September 2007
Create a remote branch
git clone git+ssh://dev.laptop.org/git/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]