2018年6月13日 星期三

Git: Show only changed files in specific commit history 只顯示變更之檔案 不顯示內容

$ git diff-tree --no-commit-id --name-only -r <commit hash>

  • The ---no-commit-id suppresses the commit ID output.
  • The ---pretty argument specifies an empty format string to avoid the cruft at the beginning.
  • The ---name-only argument shows only the file names that were affected (Thanks Hank).
  • The --r argument is to recurse into sub-trees

credit: author

沒有留言:

張貼留言