【问题标题】:Combine git rev-list with git show将 git rev-list 与 git show 结合使用
【发布时间】:2014-01-30 14:03:36
【问题描述】:

目前要审查在分支上所做的提交,我会执行以下操作:

git merge-base HEAD master  # to get the hash of when the branch came off parent
git show [hash from above command]..my-branch

但是,这会按时间倒序列出提交。我想回顾从第一个开始到最近的提交。要按此顺序获取提交哈希,可以使用

git rev-list [hash from above command]..my-branch

但是谁能告诉我如何将它传递给 show 或 difftool?

【问题讨论】:

    标签: git show git-rev-list


    【解决方案1】:

    我想你想要的其实可以直接从git log获得

        git log -p --reverse [hash from above command]..my-branch
    

    【讨论】:

      猜你喜欢
      • 2021-01-31
      • 2020-07-17
      • 2017-01-18
      • 1970-01-01
      • 1970-01-01
      • 2017-02-06
      • 2021-10-23
      • 1970-01-01
      • 2014-10-22
      相关资源
      最近更新 更多