是否可以在使用 TortoiseHg 提交后编辑摘要?

编程入门 行业动态 更新时间:2024-10-27 04:24:31
本文介绍了是否可以在使用 TortoiseHg 提交后编辑摘要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-30 02:34:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1388243.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:摘要   编辑   提交后   TortoiseHg

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!