I'm aware of
C-x v ~ which allows you to see a different revision of the current file, but I would like to visit the file on another branch.
Is this possible with magit, VC or git-timemachine?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
So I was confused because the options to choose from for
C-x v ~ only showed older revisions of the file on this particular branch, but you can in fact specify a branch and have that file shown.
Ie. if you want to visit the current file on master:
C-x v ~
Then just specify
As suggested by @KyleMeyer, the Magit command for this would be