esfncg
Last Updated: February 25, 2016
·
4.743K
· chrisjaure

Git: View a file in a different branch

To view a file in a different git branch (without checking it out) you can run the following:

git show <branch>:<file>

Bonus points for piping it to your favorite editor:

git show feature/add-all-the-things:css/cool.css | vim -R -