How to Safely Discard Changes in a Specific Directory with Git
This guide explains how to use Git's modern "git restore" command, the classic "git checkout" syntax, and "git clean" to safely discard tracked changes or remove untracked files in a chosen directory, including safety tips like dry‑run options.
