History
View history
Section titled “View history”git loggit log --oneline --graph --decorate
View changes
Section titled “View changes”git diffgit diff --staged
View a specific commit
Section titled “View a specific commit”git show abc123
Best practices
Section titled “Best practices”- Use
git log --oneline
for a readable history. - Check changes with
git diff
before committing.