Show Menu
Cheatography

Git Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Create

init
[-p] no verbose except error
clone <ur­l> [new-dir]
Hello World!

Terms

master
origin
upstream

log

--oneline
one line for one commit
--stat
display commits with statistics
-p | --patch
displays actual changes
<id>
starts from given SHA
-n <co­unt>
display number of commits
-w
ignores whitespace
git log [--one­line] [--stat] [-p | --patch]

log (copy)

--oneline
one line for one commit
--stat
display commits with statistics
-p | --patch
displays actual changes
<id>
starts from given SHA
-n <co­unt>
display number of commits
-w
ignores whitespace
git log [--one­line] [--stat] [-p | --patch]

commit

commit