git revert file to master

C++
## Revert file to master
If you want to revert the file to its state in master
```bash
git checkout origin/master thefile
```git checkout -- filename
Source

Also in C++: