git reset file from another branch code example
Example: 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
```
## Revert file to master
If you want to revert the file to its state in master
```bash
git checkout origin/master thefile
```