问题描述
限时送ChatGPT账号..有时我会向存储库提交一些代码,添加评论/摘要,然后重新阅读摘要并意识到我犯了一个错误或应该包含更多信息.在 TortoiseHg 中提交后可以编辑摘要吗?我使用的是 1.1 版
Occasionally I commit some code to the repository, add a comment/summary, then read the summary back and realise I've made a mistake or should have included a bit more information. It is possible to edit the summary after a commit in TortoiseHg? I'm using version 1.1
推荐答案
如果那是最后一次提交,你可以在提交对话框中按撤消"按钮(它是hg rollback
的接口)),然后使用新消息再次提交相同的文件.如果这是在树中间的提交,则需要使用 mq
扩展来删除所有以后的提交并重新应用它们.如果将带有错误摘要的提交推送到公共存储库,您应该接受并接受它,因为您不应更改已发布的提交.
If that is the last commit, you can press "Undo" button in the commit dialog (it is an interface to hg rollback
) and then commit the same files again with a new message. If this is a commit in a middle of the tree, you need to use mq
extension to delete all later commits and reapply them. And if the commit with an incorrect summary is pushed to a public repo, you should accept and live with that, because you should not change published commits.
这篇关于是否可以在使用 TortoiseHg 提交后编辑摘要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论