Git - revert / undo local modifications
To undo local modification to file
git checkout -f /path/to/file
To revert a recent commit
git reset HEAD~
Good reference for Git material: Kernel Hackers’ Guide to git
To undo local modification to file
git checkout -f /path/to/file
To revert a recent commit
git reset HEAD~
Good reference for Git material: Kernel Hackers’ Guide to git