Upendra Singh
Upendra Singh

Reputation: 1

Recently, I used sourcetree to push my folders to the bitbucket.

Recently, I used sourcetree to push my folders to the bitbucket. But since this was my first time, before i setup the .git i accidentally deleted my local repo using the sourcetree software. now i dont have any backup of it. Are there any ways to recover that whole folder? Thank you.

Upvotes: 0

Views: 88

Answers (1)

David Deutsch
David Deutsch

Reputation: 19035

If you only added the folder to Source Tree, and did no commits, then you should have seen the following dialog:

Warning dialog

If that is the case, then just as the warning says, those files are pretty much lost, unless you can find them all in the recycle bin or through other recovery software.

If instead you committed all the files before deleting the repository, then all you have to recover is the .git directory. You will still need to find it in the recycle bin and/or use recovery software though.

Sorry I don't have better news for you.

Upvotes: 0

Related Questions