Git sign off previous commits?

后端 未结 8 540
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 11:24

I was wondering how to sign(-s) off previous commits that I have made in the past in git?

8条回答
  •  抹茶落季
    2020-12-12 11:54

    Try this one to redo old commits with a -S:

    git filter-branch -f --commit-filter 'git commit-tree -S "$@"' HEAD
    

    After that, you have to git push -f. But be careful, the commit ids will change and other people will become out of sync.

提交回复
热议问题