TubeTK/Development/GITCheatSheet: Difference between revisions
From KitwarePublic
< TubeTK | Development
Jump to navigationJump to search
(New page: = Create a checkout = *git clone git://gitorious.org/tubetk/tubetk.git = Push local changes = *git push origin master = Track a remote branch = "git fetch" (get up to date) or "git pull"...) |
|||
Line 6: | Line 6: | ||
= Track a remote branch = | = Track a remote branch = | ||
"git fetch" (get up to date) or "git pull" | * "git fetch" (get up to date) or "git pull" | ||
*git branch --track somebranch origin/somebranch | *git branch --track somebranch origin/somebranch | ||
** --track is not needed unles you've set branch.autosetupmerge in your config | |||
*git checkout somebranch | *git checkout somebranch | ||
*git commit | *git commit | ||
*git push | *git push | ||
** sends changes to origin/somebranch | ** sends changes to origin/somebranch | ||
Revision as of 18:35, 25 January 2010
Create a checkout
- git clone git://gitorious.org/tubetk/tubetk.git
Push local changes
- git push origin master
Track a remote branch
- "git fetch" (get up to date) or "git pull"
- git branch --track somebranch origin/somebranch
- --track is not needed unles you've set branch.autosetupmerge in your config
- git checkout somebranch
- git commit
- git push
- sends changes to origin/somebranch