TubeTK/Development/GITCheatSheet

From KitwarePublic
Jump to navigationJump to search

Create a checkout

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