Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

See revision history of deleted file


I've recently done a commit which has deleted a file. What I would like to do is view the revision history of the file that was deleted. Is this possible?
When I try to click on the deleted file I am not able to and it doesn't show up in the folder anymore.


3 answers

As the other answers say, you'll need to find a version where the file was added or edited. Then click to view its history (right-click, choose Log selected, window with info opens but may not be active window - open from taskbar.)

If you have a lot of versions, then it can be a real pain to go through the old versions to find a version where that particular file was changed. 

A trick:

What I did  was to create a new empty file with the same name. Then commit. I now had the file to click on.

Ana's answer is kinda right, but has sequence problems.  

To find the revision history of a file that was already deleted ...

  1. Find a Commit or Pull Request in which the file of interest was either added or changed, not deleted.  (I don't have a solid answer for how to do that.  In my case, my files usually include messages naming Jira tickets under which changes were made, so I can look at the Merges associated with those Jira tickets.)
  2. In the Files Changed list, click the file's hyperlink to navigate to the header of the file's change detail.
  3. In the right side of that header, click the 'View File' button to open the file details page for that file.
  4. On that file details page, click the 'Source' drop down button and select 'History'.

There is a problem with your answer: there is no `View File` button on the right side of the header, not even anywhere on the Files Changed page.

Like jakept likes this

You're right, Loud.  I need to refine "Find a Commit or Pull Request that involved the file" to "Find a Commit or Pull Request in which the file of interest was either added or changed, not deleted."

If you're having a hard time finding an old version where that particular file was edited, create a new file with the same name and commit it. You then have the file in your history to click on.

Like Aidan McMillan likes this
0 votes
Ana Retamal Atlassian Team Jul 23, 2018

Hi Kosta, to find the revision history if a file that was already deleted, you'll need to use a commit where the file still existed. Go to Source, find a commit where the file exists and in the dropdown select 'History':

Screen Shot 2018-07-23 at 14.01.02.png

Hope that helps!


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,441 views 4 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you