Skip to content

Instantly share code, notes, and snippets.

@iamdustan
Created June 20, 2012 14:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iamdustan/2960278 to your computer and use it in GitHub Desktop.
porcelain and plumbing examples of git commands.
# PORCELAIN
# set an upstream tracking branch.
git push -u origin development
# get an external URL and make a copy of it on your machine
git clone git@github.com:Skookum/mason.git
# PLUMBING
# parse git expression into a commit hash
git rev-parse HEAD~4
# view contents of a hash
git cat-file -p {hash}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment