你在这里: Web用户界面 > 使用界面 > System Configuration > 版本控制

版本控制

选择系统配置>功能

版本控制允许您访问以前版本的版本存储库文件。可选地,使用远程GIT存储库配置版本控件时,您可以从其团队的所有成员访问同一存储库的所有成员访问以前版本的文件。

请注意,版本控件确实如此not本身可以使您更新存储库文件的本地工作副本。相反,版本控制允许您下载以前的版本。下载后,您可以通过重新发布到FME服务器来更新工作副本。

版本控制入门

要使用版本控件,必须启用它。启用版本控件后,随时从FME桌面发布新文件或重新发布现有文件到FME服务器,将保存在本地系统上的新版本。您还可以直接从存储库页面保存单个工作空间版本。

您可以从存储库页面查看所有版本(历史), and download them as desired.

要启用版本控制,请选择System Configurationon the Web User Interface sidebar. Under Features, move the版本控制滑块向右。

笔记:You must belong to the fmesuperuser security角色to enable version control initially. Once enabled, version control permissions can be granted to others on the用户页面或者角色页。具有“管理”权限的用户可以禁用或启用版本控件。

使用远程GIT存储库配置版本控件

When you configure version control with a remote Git repository, you not only have access to your own revision history, you can also fetch revisions made by all members of your team who use version control, and commit to the same repository.

  1. 在侧边栏上,选择System Configuration
  2. 在版本控制旁边,单击展开(+) 图标。
  3. 在远程设置下,输入:
    • Remote Repository URL对于您想要提交添加和更改的Git存储库。
    • 小费:您可以在GitHub中找到此值克隆或下载适用存储库的标签。

      Mouse-over to view screenshot.

    • 远程令牌由github生成。
    • 小费:有关生成令牌的信息,请参阅GitHub帮助。根据文章版本,选择适用于您的帐户的GitHub版本(个人或GitHub Enterprise)。

      如果远程git存储库是私有的,请指定范围回购("Full control of private repositories").

      如果远程git存储库是公共的,请指定范围回购(“完全控制私人存储库”)或public_repo.(“访问公共存储库”,下回购)。

  4. 点击保存

Pushing Updates

使用远程git存储库配置版本控件时,如果您希望使用版本控件访问它们的其他团队成员,您必须将最新的文件更新推送到存储库。

  1. 在侧边栏上,选择System Configuration
  2. 在版本控制旁边,单击展开(+) 图标。
  3. 点击推到遥控器
  4. FME Server attempts to update the remote Git repository with your additional versions. However, if there are versions on the remote repository that occurred subsequent to the versions you want to push, and you have not yet fetched them, an error displays, with an option to强制推。如果你选择强制推,您的修订历史记录将覆盖远程存储库上的修订历史记录。否则,请单击取消
  5. 如果推送成功,则页面顶部显示一条消息。

获取更新

从远程GIT存储库获取更新时,您可以从已推送更新的其他团队成员获取最新的修订历史记录。然后,您可以从工作区选项卡中查看所有修订版(历史), and download them as desired.

笔记:Fetching updates doesnot更改任何存储库文件的工作副本。要更新您的工作副本,请下载修订版,并将其重新发布到FME服务器。

笔记:You can view updates only for repositories you have added to your FME Server, and on which you have Read permission. For more information, see用户or角色

  1. 在侧边栏上,选择System Configuration
  2. 在版本控制旁边,单击展开(+) 图标。
  3. 点击从遥控器获取
  4. FME服务器尝试使用远程GIT存储库的任何其他版本更新版本历史记录。但是,如果您的版本历史记录显示了远程存储库中不再存在的先前版本,则会显示错误显示错误强制获取。如果你选择强制获取,您的版本历史记录被覆盖以匹配远程存储库上的版本。否则,请单击取消
  5. If the fetch is successful, a message appears at the top of the Version Control page.