Skip to content
techsnow

Git Basics

status, diff and log

git status            # what changed and what is staged?
git diff              # exact line changes not yet staged
git diff --staged     # changes that are staged
git log               # full history
git log --oneline     # short history

Output

a3f9c21 Add contact form
7b1e0d4 Style the navbar
2c8e5f1 Add home page