Git Reset File From Master May 29, 2022 • Ulysses Here’s how to reset a file from the master branch. <pre lang="bash"> git checkout origin/master test.py This will undo your changes and matches what’s in the master repo.