Can I configure git blame to always ignore certain commits? Want to fix git blame once and for all

前端 未结 2 1776
遥遥无期
遥遥无期 2020-12-16 16:04

I am in a repository where git blame has effectively been broken.

There are two commits I want to ignore in git blame.

  • Commit 1 destroyed a lot
2条回答
  •  感动是毒
    2020-12-16 16:43

    if it were really immediately reverted, you can use git replace --edit $comment2 to fake parent of commit1 to be its parent.

提交回复
热议问题