example-projects/reference/git/README.md

972 B

Git — reference material

Placeholder. This folder will hold a self-paced primer on Git: the tool that lets you save versions of your project, undo changes safely, and try out ideas without losing what already works.

Planned topics (rough sketch — order subject to change):

  • What a repository is and why you'd want one
  • git init, git status, git add, git commit — the daily loop
  • Looking at history: git log, git diff
  • Undoing things: git restore, git revert, and when not to use git reset --hard
  • Branches: trying something without breaking your working version
  • Merging and the basics of resolving a conflict
  • Ignoring files (.gitignore)

When to dip in

Once your project has more than a handful of files, or once you've lost work to an editor crash. Until then, you can probably get by with "save often."

Installing

Will be filled in. Short version: most operating systems either have it or make it a one-line install.