How to view a file from another branch

Updated . Posted . Visible to the public. Repeats.

Just run git show branch:file. Examples:

git show HEAD~:bin/command
git show origin/master:../lib/version.rb
Dominik Schöler
Last edit
Besprechungs-PC
License
Source code in this card is licensed under the MIT License.
Posted by Dominik Schöler to makandra dev (2015-01-19 10:49)