corinthia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kelly <pmke...@apache.org>
Subject Re: Tricky GIT question.
Date Sat, 27 Dec 2014 23:13:46 GMT
> On 28 Dec 2014, at 3:33 am, jan i <jani@apache.org> wrote:
> 
> in branch "jan" I have modified file foo.c how can I see a diff against
> master
> 
> something like
> 
> git diff -m master foo.c

git diff master path/to/file.c

Another handy one is:

git diff --name-status master

This shows you all the files that have changed.

—
Dr Peter M. Kelly
pmkelly@apache.org

PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message