« back to all cards in this deck
Posted over 3 years ago. Visible to the public.

Git diff a file with another revision (or branch)

git diff commit_hash -- path/to/file

Provide any commit hashes or branch names like "master" for commit_hash.

Author of this card:

Avatar
Arne Hartherz
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
Posted by Arne Hartherz to makandropedia