Revert a file back to HEAD after you've really messed it up.
When in a file that needs reverting, press ctrl-cmd-r to revert the file.
There is also a context menu item in both the editor and tree-view titled git revert.
Esc key closes the modal.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.