View a File In Another Git Snapshot
Have you ever wondered: 'what does this file look like on the master branch?' vim-fugitive to the rescue.
This command will open our Gemfile as it exists on the master
branch:
:Gedit master:Gemfile
And the same file, in the HR-TIL repo, initial commit:
:Gedit b4da33:Gemfile
This also works with tags, and includes split, vertical split, and tab variations— I like :Gsplit
the best.
Install vim-fugitive and see :help Gedit
for more information.