本页内容

git status

显示文件状态

默认情况下,Qt Creator 会在“项目”“文件系统”和“打开的文档”视图中显示文件状态。已更改的文件会以不同颜色显示。状态每 10 秒自动刷新一次。

要自定义文件状态的刷新频率:

  1. 转到“Preferences ” > “Version Control ” > “General ”。
  2. 确保已选中“Show VCS file status with refresh interval ”。
  3. 设置Qt Creator 向 Git 请求文件状态更新的间隔(以秒为单位)。

显示 git 状态

要在Version Control 中查看存储库的状态,请转到Tools >Git >Local Repository ,然后选择“Status ”。

若要包含未跟踪的文件,请选择“Status (Include All Untracked) ”。

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