Frequently used git commands
- Empty commit :
git commit --allow-empty -m "trigger"
- Reset uncommitted changes :
git reset --hard HEAD
- Reset last commit :
git reset --hard HEAD~1
- Reset single file :
git checkout master -- /path/to/filename.txt
- Update last commit :
git commit --amend