#Git Essentials
Head is a pointer that goes to the tip of the current repository
- To checkout a file instead of a branch:
git checkout -- curr_file
- Take something out of staging:
git reset HEAD file_name
- Amend option:
git commit --amend -m 'message'
Each git commit keeps track of parent and hash.
Working -> Staging Index -> Repository
git log --graph --oneline --all --decorate