History
View history
Section titled “View history”git loggit log --oneline --graph --decorateView changes
Section titled “View changes”git diffgit diff --stagedView a specific commit
Section titled “View a specific commit”git show abc123Best practices
Section titled “Best practices”- Use
git log --onelinefor a readable history. - Check changes with
git diffbefore committing.