Skip to content
GitTree

Video: Ignore files and clean untracked work safely

The video plays in YouTube’s player, in privacy-enhanced mode.

Commit the course ignore policy, then preview and remove only a disposable untracked scratch file. Keep ignored build output, tracked work and recovery scope separate.

Read the full lesson

The article has every step and command from the video, the practice exercise and the questions.

Go to the lesson

Video transcript

The narration of the video, cue by cue.

  1. Start from the exact checkpoint.
  2. Name the branch, index and working version.
  3. Prepare only the isolated course copy.
  4. Save the exact shared ignore policy.
  5. Commit only the ignore file.
  6. Keep the scratch file deliberately untracked.
  7. Preview the exact named path first.
  8. Read every removal candidate.
  9. Do not widen the clean options.
  10. Remove only the disposable file.
  11. Verify what stayed as well as what disappeared.
  12. Does ignore erase tracked history?
  13. Rules hide untracked candidates; they do not rewrite history.
  14. What remains after scoped clean?
  15. Only the named untracked scratch is removed with these options.
  16. Does cleaning make a new commit?
  17. The operation removes disk bytes outside the index.
  18. Change input to include ignored files: scope?
  19. Expanded options change candidates; preview again before acting.
  20. Native clean ran. Is app Undo guaranteed?
  21. Native clean creates no GitTree journal or untracked-content backup.
  22. What proves the intended clean?
  23. Check both removed and preserved state with the named queries.
  24. Verify the actual result, not just a message.
  25. Predict the changed input before acting.
  26. Preserve useful work before recovery.
  27. Prove the checkpoint before continuing.
  28. Keep the verified result for the next step.

All tutorials