So I was trying to learn how to use SourceTree and then I got to a point where I had 2 repositories (with different names) for the same project, so I decided to delete one of those repositories to get a cleaner interface. Then it deleted the whole project from my computer, is it possible to recover the files?
By the way, I was trying to "upload" the project to a repository on BitBucket, but I was unable to do so, the project isn't stored anywhere else.
If the files were inside a git repo and the repository still exists you can recover them by doing a checkout on a previous commit when the files existed.
In source tree you can simply double click a previous commit, presuming you still have the repo on disk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With