V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
xudzhang
V2EX  ›  git

怎么查看 Git 工程远端某分支上,两次提交之间,某个用户修改过的文件的列表?

  •  
  •   xudzhang · 2018-12-10 14:07:05 +08:00 · 1766 次点击
    这是一个创建于 1935 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2018-12-10 17:38:02 +08:00
    hongch
        1
    hongch  
       2018-12-10 15:06:58 +08:00   ❤️ 1
    git checkout [第二次提交节点]
    git diff
    这样不就可以看见第二次在第一次的基础上修改了哪些文件?
    SingeeKing
        2
    SingeeKing  
       2018-12-10 15:38:21 +08:00   ❤️ 2
    git-diff - Show changes between commits, commit and working tree, etc

    git diff [<options>] <commit> <commit> [--] [<path>...]
    This is to view the changes between two arbitrary <commit>.

    --name-status
    Show only names and status of changed files. See the description of
    the --diff-filter option on what the status letters mean.

    因此用法:git diff --name-status 提交 1 提交 2
    wjfz
        3
    wjfz  
       2018-12-10 17:38:02 +08:00
    checkout 到本地,找到两次提交的日期

    git log --author="你想查的用户名" --since=2018-12-05 --before=2018-12-10 --oneline --name-status


    感谢楼上提供--name-status 这个参数,看了下 git log 命令也支持这个参数。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5710 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:49 · PVG 09:49 · LAX 18:49 · JFK 21:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.