# A puzzling omission from the Git book

2 messages from 2019-03-29 to 2019-03-29. Participants: Peter Toye, Robert P. J. Day.
Thread: https://gitlist.dev/t/50837

## Peter Toye, 2019-03-29 12:55

Subject: A puzzling omission from the Git book
Message-ID: <373066205.20190329125548@ptoye.com>
URL: https://gitlist.dev/e/373066205.20190329125548%40ptoye.com

```
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, 2019-03-29 13:04

Subject: Re: A puzzling omission from the Git book
Message-ID: <alpine.LFD.2.21.1903290903430.14340@localhost.localdomain>
URL: https://gitlist.dev/e/alpine.LFD.2.21.1903290903430.14340%40localhost.localdomain
In-Reply-To: <373066205.20190329125548@ptoye.com>

```
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
========================================================================

```
