Cheatsheet for git commands
few minutes
gitdevops
cheatsheetgit
Beginner
developer

Info

git --help, git --info, git --version

git diff

Start working area

git init
git clone

Work on current change

git add
git mv
git restore
git rm
git sparse-checkout

Useful commands

add
commit -m
commit -am
diff
diff --stat
diff --cached
config --get-regexp
branch
restore
switch
status -sbu

log --oneline --graph --decorate --all --shortstat
log --oneline --graph --decorate --all -3 HEAD --stat

log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short