Git: Revert a single file

Use "git checkout -- filename" to revert a file. The "--" ensures that it recognises filename as a path and not a branch.

[ Source ]

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog