Git Course 0%

Files & Folders in a Git Project

Git tracks files, and the everyday surprises come from the ways files can change without Git being told: a rename in the editor, a deleted folder, a generated file that suddenly appears, a screenshot that cannot be diffed. This section makes each of those predictable. It is short and practical; every lesson has commands to try in the playground.

Before you start: Section 2 (file states) and a configured Git (Section 3). Have the playground set up.

Lessons in this section

  1. init vs clone; the .git folderBeginner≈ 9 min
  2. Create, rename, move, deleteBeginner≈ 12 min
  3. .gitignoreBeginner≈ 10 min
  4. Working with documentation filesBeginner≈ 8 min
  5. Line endings, permissions, binariesBeginner≈ 8 min
  6. Safe editing in someone else's projectBeginner≈ 6 min