Good day, in order to not loose a couple days worth of work. I need to recover 2 files that were accidentally removed through the 'right-click, remove file' feature source tree has.
Idelly if sourcetree were to throw the 'removed' files into the trashcan, than my situation would be resolved.
Also, if source tree were to stash said new files than i could revert back to a stashed file, but it doesn't appear like that is the case.
Does anyone have any tips or tricks on recovering a file that was never committed (but it was stashed multiple times). When i 'apply' said stash to my local repository, I don't see the file.
SourceTree has nothing to help with this unfortunately. If you staged the file, there might be a way to retrieve it from the git index (using "git reflog", you may need to go to a git forum, since this is advanced usage).
If you did not even stage the files, your best bet is to google for file recovery tools ASAP.
Was this on a Mac? It would be nice if SourceTree did move the files to the trashcan instead of deleting them at a system level, but it's probably just using "git rm" or the system "rm".
But you should have seen a pretty explicit warning, right?Screen Shot 2016-03-30 at 9.21.20 AM.png
Still, I agree with you that it would be really nice functionality if SourceTree used the recycling bin / trashcan instead of deleting files directly. This questions come up here with some regularity, so it would probably make a really good feature request at jira.atlassian.com (if it's not already there - and I see it is...)
https://jira.atlassian.com/browse/SRCTREEWIN-3822 is different but similar
Doesn't sound like they're inclined to implement it. Pity.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
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!
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