Hi,
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.
http://i.prntscr.com/08tFCCWpRhmOpWlonds4cA.png
Thanks
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 ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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':
Hope that helps!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.