* A puzzling omission from the Git book
@ 2019-03-29 12:55 Peter Toye
2019-03-29 13:04 ` Robert P. J. Day
0 siblings, 1 reply; 2+ messages in thread
From: Peter Toye @ 2019-03-29 12:55 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: A puzzling omission from the Git book
2019-03-29 12:55 A puzzling omission from the Git book Peter Toye
@ 2019-03-29 13:04 ` Robert P. J. Day
0 siblings, 0 replies; 2+ messages in thread
From: Robert P. J. Day @ 2019-03-29 13:04 UTC (permalink / raw)
To: Peter Toye; +Cc: git
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
========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-29 13:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-29 12:55 A puzzling omission from the Git book Peter Toye
2019-03-29 13:04 ` Robert P. J. Day
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).