how to revert a file to another branch git 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
```