threads / discuss / 50837

A puzzling omission from the Git book

Subject: A puzzling omission from the Git book

## tl;dr

2 messages between Mar 29, 2019 and Mar 29, 2019.

replies: 1people: 2as markdown or json

Peter Toye· Mar 29, 2019, 12:55 UTC · lore
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:git@ptoye.com www.ptoye.com

Robert P. J. Day· Mar 29, 2019, 13:04 UTC · re: Peter Toye · lore

Re: A puzzling omission from the Git book

On Fri, 29 Mar 2019, Peter Toye wrote:
> 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
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

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

← back to recent threads