emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git question


From: Jean-Christophe Helary
Subject: Re: git question
Date: Wed, 27 Jun 2018 23:29:53 +0900



On Jun 27, 2018, at 23:23, Yuri Khan <address@hidden> wrote:

On Wed, Jun 27, 2018 at 9:03 PM Jean-Christophe Helary
<address@hidden> wrote:

When I do a git pull and I get, for ex:

etc/NEWS       |  6 ++++++
lisp/info.el   |  4 ++--
lisp/server.el | 10 ++++++----

like I just had.

What git command should I use to examine what are the modifications on the three above files?

Normally you would first do a “git fetch”, then see the diff between
current state and the remote branch, and only then decide if you want
to merge that:

:) I trust the commiters to only commit proper code. I'm just curious about some files sometimes.
But thank you for the hint !

$ git fetch
$ git diff HEAD..origin/master
$ git merge origin/master

(substitute a different remote branch name as necessary).

But if you did a blind pull already, you can look back this way:

$ git diff address@hidden

Thank you, and thank you Andreas for the same reply.

Now, if I want to only check 1 file out of the multiple files that have been commited ?


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune



reply via email to

[Prev in Thread] Current Thread [Next in Thread]