tags: version-control git reset title: Git Reset One File To get all files from the repo: ```bash git reset --hard ``` If I want to get a file from the repo (source: [this stackoverflow](https://stackoverflow.com/questions/7147270/hard-reset-of-a-single-file)) use `checkout`: ```bash git checkout HEAD -- filename.py ```