Posted about 5 years ago. Visible to the public. Repeats. Linked content.

How to view a file from another branch

Just run git show branch:file. Examples:

Copy
git show HEAD~:bin/command git show origin/master:../lib/version.rb

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Dominik Schöler
Last edit:
over 3 years ago
by Besprechungs-PC
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Dominik Schöler to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more