Overview git status git add . git status git commit -m "Add the third project file" git status git log --oneline To inspect an earlier state: git log --oneline git checkout <older-commit-id>