Git

Play locally, push globally.

  Adj.      Verbs
C committed commit
S staged    stage
M modified  modify
T tracked   track
U untracked untrack

# setup
git config --global user.name  "usr"
git config --global user.email "e@m.ail"
git config --global core.editor ed

# check setup
git config --list
git config x  # lookup x

# make ./ a repo
git init

# clone repo
git clone x    # from x to ./
git clone x y/ # from x to y/

# check status
git status    # ./'s repo stats
git status -s # short status

# check changes
git diff          # diff M & S
git diff --staged # diff S & C

# take snapshot
git commit        # C S ed status
git commit -v     # C S ed status & diff
git commit -m "x" # C S note x
git commit -a     # S T C S

git add x     # S|T x
git rm --cached x #remove x from S but keep in .

# .gitignore list of files to ignore

Sources
http://git-scm.com/book/en/v2
https://www.atlassian.com/git/tutorials/setting-up-a-repository
https://github.com/github/gitignore