Use git effectively with Claude Code
Git is your safety net. Use it religiously with Claude Code.
Warning
Tip
Claude might make multiple changes. Commit selectively:
Aussie Note
Warning
| Command | What it does |
|---|---|
git status | See changed files |
git diff | See exact changes |
git add . | Stage all changes |
git commit -m "msg" | Create commit |
git checkout . | Discard changes |
git checkout -b name | Create branch |
git merge branch | Merge branch |
git log --oneline | View history |