git co -- path/to/single/file 2020 https://dev.to/lofiandcode/git-and-github-how-to-revert-a-single-file-dha