I have made a terrible mistake. I deleted my entire senior project trying to set up github.

Hello, I have deleted my entire senior project. Before I explain what happened, let me preface this by saying this is my first experience with mobile development AND git (an obvious oversight in my cs education I see now), so everything I say is probably totally idiotic. But I'm very desperate and I know this is a total shot in the dark, but I'm hoping someone can help me recover my project. I was developing a cross platform mobile application on Xamarin Studio when my professor told me I had to create a github repository so he can view my progress. Unfortunately, I had checked the "version control" when I created the project- and this might be my saving grace, or not-, and although I never used the version control that was apparently running while I wrote the project, it was absurdly difficult to change the registered repository to my github. In fact, the Publish button wasn't even showing as an option. So I messed around (I know, I'm an idiot) turning Version Control on and off, etc. etc. Finally, I clicked "check out" and a window came up that looked like the git instructions I was following (see here: https://leerolsen.wordpress.com/2014/11/22/how-to-commit-to-github-using-xamarin-studio/) and I entered my git URL and it all seemed to work wonderfully. However, the next step stated that a Module Name and Message set would appear, and then a login box for github. This did not happen. Instead I "checked out" my entire project, as well as every project in the target directory /Users/Me/Projects to a repository that wasn't connected yet https://[email protected]:###/Me/Very-Important-Senior-Project ...... and then everything disappeared, including my very important senior project. So my question is, based on all this information, IS there anyway to recover those files I've checked out if I never really used git (to my knowledge; I did check that version control box but never did anything meaningful) and it wasn't connected to github? I don't understand why it would proceed with the check out process if there was the source basically didn't exist? Thanks so much for reading this. Again, I know I'm an idiot. I fundamentally misunderstood was "check out" entailed and I was very frustrated about the lack of the Publish button I so needed.

Posts

  • JamesPettigrewJamesPettigrew AUMember ✭✭

    Try this: http://gitready.com/intermediate/2009/02/09/reflog-your-safety-net.html

    It sounds like you never committed/stashed/staged anything though so I have a feeling you may be out of luck. Xamarin Studio may keep a temporary history of files somewhere, and I'm not sure what a git checkout actually does to a directory so the files could still be on disk and its just their pointers that have been deleted (hard drive recovery software, maybe?).

  • SKallSKall USMember ✭✭✭✭

    Sounds like you're on a Mac. Right? By any chance have you setup Time Machine?

    If not I would highly recommend you get in contact with someone at your university that knows git. It would be hard to try to help without having the machine at hand and even if you get sound advise here it would be best to leave the machine alone and seek someone local who can help.

  • MollyMcGrealMollyMcGreal USMember

    Thank you for your responses @JamesPettigrew and @SamiMKallio! Unfortunately, the project was lost forever and I learned a very valuable lesson about git.

  • kentuckerkentucker USMember ✭✭✭✭✭

    If it is a windows machine there is a chance that a tool like free undelete or recuva will be able find the old files on your hard drive.

Sign In or Register to comment.