MBED .cpp code deleted itself

I had an issue with code deleting itself from .cpp file. Is there any way to recover it from history? I have also a dozen of binary files to back it up.