gpt4 book ai didi

git - 在 Git 中编辑根提交?

转载 作者:IT王子 更新时间:2023-10-29 01:12:35 26 4
gpt4 key购买 nike

有一些方法可以更改以后提交的消息:

git commit --amend                    # for the most recent commit
git rebase --interactive master~2 # but requires *parent*

如何更改第一个提交(没有父项)的提交消息?

最佳答案

Git 版本1.7.12 , 你现在可以使用

git rebase -i --root

Documentation

关于git - 在 Git 中编辑根提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2119480/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com