Git - get all commits and blobs they created

后端 未结 6 1274
天涯浪人
天涯浪人 2020-12-05 03:07

Is there a git command that can output for every commit:

  1. id
  2. subject
  3. blobs it created with they path and size (like git ls-tree -l -r &l
6条回答
  •  眼角桃花
    2020-12-05 03:50

    You can also get a list of all commits (including the dangling ones) with:

    git log --walk-reflogs | grep -E -o '[0-9a-f]{40}'

    Include this line in the settings for a new view in gitk (in the last input field, the command to generate additional commits) and you will get a tree that also shows the 'forgotten history' of the project.

提交回复
热议问题