For a couple of days now I have developed a new data fitting algorithm. Normally I commit my work to a remote Git repository, but because of the works-in-progress status of the code, I have not tried to upload anything until today.
Today the code was in a good enough state, so I decided to commit locally and to the remote repository. Using Github for Windows, I first committed and then pressed the Sync button ... and to my complete dismay the synchronization failed AND my local commit disappeared!
At first, I foresaw numerous hours trying to reproduce what I had carefully developed, but fortunately I found the life-saver here:
Git Ready: Restoring Lost Commits
My gratefulness goes to the author of that page, Nick Quaranto. He saved my day today.