Detail change after Git pull

前端 未结 4 2026
小鲜肉
小鲜肉 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:44

    This way's kind of hacky, but it'll allow you to use graphical tools like gitk or gitg or git-gui:

    git pull
    git reset HEAD@{1}
    gitg (or gitk or whatever tool you like)
    

    The answer with the most upvotes gives the best way using the git tool, but I use this method because I can then utilize tools with GUI to see the changes :P

    I'd then have the extra step of doing a git checkout . and then doing git pull again so that I properly pull and merge, but I value the ability to examine differences in a GUI enough to deal with the extra two steps.

提交回复
热议问题