Skip to contentSkip to conversation

A puzzling omission from the Git book

DISCUSSION Peter Toye 2 participants 2 messages Mar 29, 2019

lore
Share & tools
lore

Peter Toye

author
#0 lore raw

I'm looking for a way of comparing the files in two branches. According to Stack Overflow there's a git diff command but I can't see any reference to it in the book. Am I being more than usually thick?

The Git Gui app doesn't seem to have that command in it either. A bit frustrating.

Yours,

Peter
mailto:[email protected]
www.ptoye.com

#1 lore raw
Quoted 4 lines · Peter Toye

I'm looking for a way of comparing the files in two branches. According to Stack Overflow there's a git diff command but I can't see any reference to it in the book. Am I being more than usually thick?

it should be just

  $ git diff <branch1> <branch2> -- <filename>

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================