交互式重建

要更改本地版本库中的一系列提交,请访问Tools >Git >Local Repository 并选择Interactive Rebase 。你可以重新排序或放弃提交,将它们合并为一次提交,或编辑提交信息。

从变更日志中重置

如果您已将本地变更推送到远程版本库,Qt Creator 会拒绝交互式重建,因为缺少本地提交。

要从变更日志启动交互式重建,请访问Tools >Git >Branches >Log 。选择更改,然后在上下文菜单中选择Interactive Rebase from <hash>

另请参阅 如何使用 GitGit

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.