You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature request] Capability to open old version of file in Git side bar #23011
feature-requestRequest for new features or functionalitygitGIT issuesgood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeeded
Michael Ovchinnikov (@Deilan) while not exactly what you are asking for here (as a menu choice), but the GitLens extension can provide this behavior by doing the following:
Using the command palette run GitLens: Show File History or press alt+h when you have the file opened.
Then from the quick pick menu that opens, choose the commit you want (the most recent one in this case) and then choose Open File and it will open that version of the file
I would love to be able to add commands to the git file menu, but that currently isn't supported
feature-requestRequest for new features or functionalitygitGIT issuesgood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
eamodio commentedon Mar 22, 2017
Michael Ovchinnikov (@Deilan) while not exactly what you are asking for here (as a menu choice), but the GitLens extension can provide this behavior by doing the following:
Using the command palette run
GitLens: Show File Historyor pressalt+hwhen you have the file opened.Then from the quick pick menu that opens, choose the commit you want (the most recent one in this case) and then choose
Open Fileand it will open that version of the fileI would love to be able to add commands to the git file menu, but that currently isn't supported
add "open old file" git command
Duroktar commentedon May 15, 2017
Michael Ovchinnikov (@Deilan) I thought I'd take a crack a this one and got it working pretty much exactly like you requested. #26629
I'd love to hear what everybody thinks 😄
Cheers.
joaomoreno commentedon Jun 26, 2017
Fixed by #26629, thanks traBpUkciP (@Duroktar)