I'm trying to revert my changes in a single file in my feature branch and I want this file to be the same as in master.
I tried:
git checkout -- filename git checkout filename git checkout HEAD -- filename
It seems that none of these made any changes to my feature branch. Any suggestions?
If you want to revert the file to its state in master
:
git checkout origin/master [filename]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With