-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quickly show current file on other branch #646
Comments
From the command palette, you can use the GitLens: Open Changes with Branch or Tag... — compares the active file to the tip of the selected branch. The command is also on the right-click menu of items in the Source Control sidebar. Or you can use GitLens: Open Changes with Revision... — compares the active file with whatever revision you choose from the quick pick. The command is also on the right-click menu of items in the Explorer & Source Control sidebar. and as the alt (⌥) command of the Open Changes with Previous Revision command in the editor toolbar Hope that helps! |
This always opens a diff rather than the file though |
yes |
Ah, so to just open a readonly version of a specific revision use, Open Revision... — opens a version of the active file with whatever revision you choose from the quick pick. |
That doesn't let me select a branch though ;) although it's close since I can pick the most recent commit of that branch |
Yeah that is the equivalent. But I'll add a new command to open the revision from a branch or tag shortcut like the comparison one. |
👍 (not sure if you want to leave this open actually, so I'll re-open it) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In
vim-fugitive
I can do:Gedit develop:%
. The%
expands to the current file path and the command will open that file path but from the specified branch (heredevelop
) in my editor. How do I achieve the same in GitLens? I can compare my directory and branch and then navigate through the explorer view but that's a bit clunky. I really just want the current file on the current branch and (next to it, on the side), the same file on a different branch.The text was updated successfully, but these errors were encountered: