git finding duplicate commits (by patch-id)

后端 未结 7 1789
天命终不由人
天命终不由人 2020-12-16 02:05

I\'d like a recipe for finding duplicated changes. patch-id is likely to be the same but the commit attributes may not be.

This seems to be an intended use of patch-

相关标签:
7条回答
  • 2020-12-16 02:33

    Because the duplicate changes are likely to be not on the same branch (except when there are reverts in between them), you could use git cherry:

    git cherry [-v] [<upstream> [<head> [<limit>]]]
    

    Where upstream would be the branch to check for duplicates of changes in head.

    0 讨论(0)
提交回复
热议问题