git revert a file to master code example
Example 1: git revert file to master
## Revert file to master
If you want to revert the file to its state in master
```bash
git checkout origin/master thefile
```
Example 2: revert file to master version git
git checkout -- filename