FIND YOUR NEXT FEW LINES
The snippet library.
Small, practical examples. Search by task or narrow things down below.
5 snippets foundClear filters
Ignore generated files
Exclude build output from untracked-file listings.
gitignore✓ Tested
List changed files without the full diff
Inspect affected paths before staging.
diff✓ Tested
See changed files
Show a concise working-tree status.
status✓ Tested
Stage one file
Add one changed file to the next commit.
add✓ Tested
Unstage a file without losing edits
Return a staged change to the working tree.
restore✓ Tested