GIT

Start

  • git init
  • git clone git://repo

Commit

  • git add file
  • git commit -m "message"
  • git commit --amend

Git GUI


A-B-C-F-G-J-L-M-O-P
       \-D-E-H-/          /
                  \-I-K-N-/

Branch

  • git branch
  • git branch -a
  • git checkout
  • git checkout -b remotebranch
  • git checkout -b localbranch remotebranch

Merging

  • git fetch
  • git pull
  • git pull --rebase
  • git merge branch1 branch2
  • git cherry-pick hash

Utils

  • git stash
  • git stash apply
  • git reflog
  • tig
  • git submodule

GIT

By Hadrien Eu