本页内容

交互式重基

若要修改本地仓库中的一系列提交,请访问Tools >Git >Local Repository ,然后选择“Interactive Rebase ”。您可以重新排序或丢弃提交,将它们合并为单个提交,或编辑提交信息。

从变更日志进行重基

如果您已将本地更改推送到远程仓库,Qt Creator 会因缺少本地提交而拒绝交互式重基操作。

若要从变更日志开始交互式重基,请依次访问Tools >Git >Branches >Log 。选择该变更,然后在上下文菜单中选择“Interactive Rebase from <hash> ”。

另请参阅 《如何使用 Git》《Git 入门》。

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.