Developer reference

Git Commands Cheatsheet

Common Git commands for checking status, reviewing diffs, and creating focused commits.

Check status

Inspect changed, staged, and untracked files before committing.

git status

Show recent commits

Review recent history before writing a new commit message.

git log --oneline -5

Compare changes

Read unstaged code changes before staging.

git diff

Create commit

Commit a focused change with a clear message.

git commit -m "fix: describe the change"

Related tools