Terminal Cheat Sheet
Terminal Cheat Sheet
Terminal Cheat Sheet
git subtree push --prefix docs origin gh-pages # push docs as subtree to gh-pages
git diff --name-only | uniq | xargs subl # Fix conflicts in Sublime Text
# inspect history
git log # this pipes a log of the current branch into your PAGER
git log -p # ditto, but append a patch after each commit message
# by name
git log v1.0.0 # show history leading up to tag "v1.0.0"
git log master # show history of branch "master"
# relative to a name
git show master^ # show parent to last revision of master
git show master~2 # show grand parent to tip of master
git show master~3 # show great grand parent to tip of master (you get the idea)
# tag a revision
git tag v1.0.0 # make current HEAD known as "v1.0.0"
git tag interesting v1.4.4-g730996f # tag a specific revision (not HEAD)