initialize a .git repository
.git/objects
.git/refs
README
src/
hello.c
| tree 4da454.. | ||
|---|---|---|
| blob | 976165.. | README |
| tree | 81fc8b.. | src |
| tree 81fc8b.. | ||
|---|---|---|
| blob | 1febef.. | hello.c |
.git/refs
branches are references
the process of joining two branches together
git commit --amend
git reset / checkout
git reset + git push --force
git reset HEAD~n
git revert --no-commit
git reflog + git checkout
git show-branch
git add --patch