在本页中

使用 Git

如何使用使用 Git

Git是一种快速的分散式版本控制系统。Git 适用于 Windows、Linux 和 macOS。

使用 Git 的项目可以使用Gerrit 代码审查工具。

开始使用 Git

处理当前文件

要处理当前文件,请访问Tools >Git >Current File

使用当前项目

要使用当前项目,请访问Tools >Git >Current Project Directory

使用本地版本库

要使用本地版本库,请访问Tools >Git >Local Repository

使用远程版本库

要使用远程版本库,请访问Tools >Git >Remote Repository

管理远程仓库

要管理 Git 提供的远程版本库,请访问Tools >Git >Remote Repository >Manage Remotes 。双击远程仓库的名称和 URL 进行编辑。

下表描述了支持的操作。

菜单项说明
Refresh刷新远程版本库列表。
Add添加新的远程版本库。
Fetch从远程版本库中获取所有分支和变更信息。
Push向远程版本库推送已提交的变更。
Remove删除远程版本库。

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