Reference · Glossary

Git

Last updated

Any project you might revisit, share, or deploy. Use commits as checkpoints before and after AI-assisted edits.

#When to use

Any project you might revisit, share, or deploy. Use commits as checkpoints before and after AI-assisted edits.

#When not to

Throwaway scratch files you will never reopen — though even then a local repo often pays for itself.

#Quality checklist

  • Small, reviewable commits
  • Never commit secrets or `.env` files
  • Read AI diffs before staging
  • Prefer branches for experiments

#Example

git status
git diff
git add -p
git commit -m "Explain the why in one sentence."

#Learn next

  • Lesson: `git-basics`
  • Related: GitHub