Safely Trash Changes With Git
git trash is an alias I've been using for a long time to remove any staged and unstaged changes in the current repository and reset to a clean state. This is very useful when experimenting with some throw away code that you won't need anymore. However, after several times of accidentally running this command with some changes I actually wanted to keep, it was time for some changes.