Answers for "git reset file to master"

1

git reset file to master

git checkout origin/master [filename]
Posted by: Guest on March-11-2021
0

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
```
Posted by: Guest on July-23-2020
1

git file reset to head

git checkout HEAD -- my-file.txt
Posted by: Guest on May-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language