Git sign off previous commits?

后端 未结 8 538
没有蜡笔的小新
没有蜡笔的小新 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 12:02

    These days (starting with Git 2.13) you can generally do something like

    git rebase --signoff HEAD~2
    

    to add Signed-off-by footers to the last 2 commits (in this example).

提交回复
热议问题