Skip to main content

查看:Git Remotes

符号: _git_icon_remotes.png

相应的 Git 命令: git remote

功能:视图用于管理 远程存储库, 用于管理 CODESYS 多个用户应该能够工作的项目。单个用户的本地存储库可以建立到共享远程存储库的链接,并在那里同步/合并他们的提交。

重要

确保您与远程服务器建立了安全连接。有关更多信息,请参阅: CODESYS Git 的安全性

打电话: Git → 遥控器 菜单

要求:项目是在 Git 中打开和管理的。

_git_icon_refresh.png

视图已刷新。

_git_icon_add_remote.png添加

打开 添加新的遥控器 对话框来指定远程存储库 CODESYS 项目应该关联

别名

注意:在 Git 中,远程存储库的常用名称是 origin

网址: 远程存储库的 URL 或文件路径

目前支持以下协议:HTTP、HTTPS、本地。

Examples: file:///D:/GitRep/Remote/<repository name>, https://dockerhostpde/testuser1/publicproject.git

_git_icon_delete_remote.png移除

系统会提示用户是否从项目中删除指向远程存储库的链接。

注意:属于已删除远程存储库的所有远程分支都将被删除。保留本地分支,但不再跟踪已删除的远程分支。此操作无法撤消

_git_icon_rename_remote.png重命名

这个 别名 可以更改远程存储库的内容。

_git_icon_set_url.png设置网址

Opens the Set URL for Remote <remote> dialog

Here, the path specification (URL or file path) for the currently used remote repository can be changed.

Changing the path information and therefore the link to the remote repository can cause remote branches to disappear. Therefore, the user has to reassign the mappings from local branches to remote branches (tracking). The local branches are not changed.

_git_icon_fetch.png

_git_icon_fetch.png (修剪)

远程存储库的本地代表(例如: origin/master) 使用所有用户使用的远程存储库的状态进行更新。所有更改均从远程存储库中应用。这些都是远程分支中的新分支和新提交。但是,提交不适用于跟踪分支。

注意:要使用远程分支的当前状态更新本地分支, 还必须在中执行操作 Git 分支 观点。

作为一种选择,你可以获得 提取(修剪) 通过以下方式指挥 _cds_icon_arrow_down.png 按钮。此 fetch 命令的效果是将不再存在于远程存储库中的远程分支从本地存储库中删除。

edit_credentials.png全权证书

该按钮可打开 编辑凭证 对话框。这个 用户名密码 可以在此处指定和编辑远程存储库的访问权限。

对于选定的远程存储库 (远程名称),列表框提供每个 网址 存储库可以为此提供证书。然后,可以保存、删除或更改所选 URL 的凭据。建议您将第一个 URL 的凭据存储在列表框中,因为随后它们也可以重复用于 “域” 内的其他项目。有关处理特定域名凭证的详细信息 需要证书

在对话框中进行编辑取代 Windows 凭据管理器中的编辑。

Note: A PAT (personal access token) is required when working with GitHUb. Then the PAT has to be specified instead of the password. Example of a PAT in GitHub: ghp_WPZP1ijlX4E<xxxxxxxxxxxxxxxxxx>

桌子

姓名:

远程存储库的别名

网址

远程存储库的 URL 或文件路径