File recovery

I am using SourceTree for Windows. I cloned a remote Git repository to my local drive and I looked to add and commit local files to it.. I moved the new files into the project directory and tried to commit but I hit a few errors when trying to push the files up.

Since I had no luck with SourceTree I was going to use another piece of software for it. In SourceTree I hit remove on the files (since I thought it meant remove them from the commit) and now my files are completely gone. They aren't in the project folder or anywhere on my computer. They are not in the recycle bin. I used two apps for file recovery and they can't find them.

If SourceTree had deleted the files they would have been in the recycle bin. If it had permanently deleted the files then the file recovery programs would have found them. But I have come up empty handed.

SourceTree has eaten the project I spent several days on. It has treated unversioned files as files in the repository and mishandled them.

I need someone to guide me how to recover local files and folders that SourceTree has deleted but weren't in version control.

2 answers

What did you do when you saw the prompt below?

I honestly do not think I saw that prompt when I hit remove during the commit process.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

986 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you