本页内容

Git 工具

Git Gui

要启动 Git 的图形界面,请访问Tools >Git >Git Tools >Git Gui

注意:在 macOS,默认的 Git 安装不包含 Git Gui。要使用 Git Gui,请单独安装。要从Qt Creator 启动 Git Gui,请访问Preferences >Version Control >Git ,并在Prepend to PATH 中将路径设置为包含 Git Gui 的环境。

Gitk

要启动 Git 的提交查看器,请转至Tools >Git >Git Tools >Gitk 。您还可以启动该工具,以查看当前文档或包含当前文档的文件夹中的提交。要为运行 Gitk 指定参数,请转至Preferences >Version Control >Git

其他仓库浏览器

若要使用其他应用程序查看 Git 历史记录,例如 GitX 或 QGit 查看器:

  1. 转到Preferences >Version Control >Git
  2. Command 中,指定应用程序可执行文件的路径。

要启动该应用程序,请转至Tools >Git >Git Tools >Repository Browser

Git Bash

要启动 Git Bash,请访问Tools >Git >Git Tools >Git Bash

合并工具

要解决合并冲突,请依次访问:Tools >Git >Git Tools >Merge Tool 。只有当您有待解决的合并冲突时,此菜单项才会显示。

另请参阅 《如何:使用 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.