Use "git checkout -- filename" to revert a file. The "--" ensures that it recognises filename as a path and not a branch.
[ Source ]
Mainly notes to future-Twig (and for anyone else who may find them useful)
If you've found one or more of my blog posts helpful, why not say thanks by buying me a coffee or beer?
Use "git checkout -- filename" to revert a file. The "--" ensures that it recognises filename as a path and not a branch.
[ Source ]