Git
Table of Contents
1. Description
Notes about Git
2. Commands
2.1. Show only names of changed files
git diff --staged --name-only
2.2. Show the difference without context
git diff --unified=0
2.3. Show untracked files
git ls-files --others
2.4. Search commits history for the string foo
git log -S foo
2.5. Interactively choose hunks to add
git add --patch <filename>
2.6. Make patch foo.patch with work tree diff
git diff > foo.patch
2.7. Apply patch foo.patch
git apply foo.patch