Stash can certainly show the deleted history of a file, but you have to first visit the file at the revision in which it still exists.
For example, viewing a file at the default branch (master) has the following URL:
If the file does not exist, you will get a warning message to that effect. If you view that file at a specific branch the URL will look change to the following:
"$branch" in this example can also be the hash/sha of any commit. If the file exists at that revision you will see the contents and history as normal. You can find this another way if you navigate to the relevant commit and click the 'view source' button on the right.
This isn't ideal, and maybe we should add a 'show all' button on a non-existent file (or something) to help discover the full history. I'm afraid to say there isn't anything like that just yet.
Just as an aside, you can obviously do the same thing on the command line (if that's your sort of thing):
git log -- $FILE
The '--' here will force git to ignore the fact that the file does not exist in your working directory. You don't need to specify the branch/hash.
I hope this helps.
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
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