Skip to content

Instantly share code, notes, and snippets.

@hkhan
Created November 24, 2011 20:43
Show Gist options
  • Save hkhan/1392241 to your computer and use it in GitHub Desktop.
Save hkhan/1392241 to your computer and use it in GitHub Desktop.
basic git commands
git checkout -t origin/feature
# creates and checks out "feature" branch that tracks "origin/feature"
git push -u origin master
# pushes the "master" branch to "origin" remote and sets up tracking
git pull-request -h [project]:[branch]
# generate a pull-request from the specified branch e.g git pull-request -h nature:669-viewer-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment