A few days ago I decided to start off the New Year on the right foot by cleaning up my repositories. Unfortunately, I accidently deleted a repository that had some uncommitted changes. I lost about 2 days of work. I was pretty disappointed, so I wrote this script to backup changes I'm not ready to commit and push yet.I'm not a great bash scripter, so I'm sure the script is not that great, but hopefully this script can prevent someone out there from getting in the position I found myself a few days ago.
https://gist.github.com/steven-p-walsh/b4f00f7b38587405099b3fcc8a5375c0