Detail change after Git pull

前端 未结 4 2015
小鲜肉
小鲜肉 2020-12-07 07:16

After a Git pull, its output gives a summary on the change amount.

How can I see each or some of the files detailed changes?

Okay, here is my question to Jef

4条回答
  •  攒了一身酷
    2020-12-07 07:40

    Say you do a git pull like this:

    $ git pull
    remote: Counting objects: 10, done.
    remote: Compressing objects: 100% (6/6), done.
    remote: Total 6 (delta 4), reused 0 (delta 0)
    Unpacking objects: 100% (6/6), done.
    From git@dev.example.com:reponame
       a407564..9f52bed  branchname   -> origin/branchname
    Updating a407564..9f52bed
    Fast forward
     .../folder/filename          |  209 ++++++++-----
     .../folder2/filename2        |  120 +++++++++++---------
     2 files changed, 210 insertions(+), 119 deletions(-)
    

    You can see the diff of what changed by using the revision numbers:

    $ git diff a407564..9f52bed
    

提交回复
热议问题