Created
June 20, 2012 14:53
-
-
Save iamdustan/2960278 to your computer and use it in GitHub Desktop.
porcelain and plumbing examples of git commands.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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