studio-web
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Studio Web 用户指南

上次更新日期 2026年3月20日

解决方案的版本控制

版本控制允许多个用户随时查看、跟踪和还原解决方案的不同版本,从而增强团队协作。这使开发者能够构建和测试自动化,而不会覆盖彼此的工作。

Studio Web 中版本控制的工作方式因 WorkSpace 类型而异:

  1. Cloud Workspace :通过“更改历史记录”面板中的快照管理版本控制。
  2. 本地工作区(本地) :通过“版本控制”面板中的 Git 管理版本控制。

Cloud 工作区中的版本控制

解决方案的版本控制通过“更改历史记录” 面板中的快照进行处理。您可以将快照视为解决方案“检查点”,即解决方案开发过程中的各个阶段。快照会保留整个解决方案状态,包括其自动化项目、资源和部署配置。

There are multiple types of snapshots:

  1. Current version: The current (latest) version of a solution. It appears at the top of the list of snapshots in the Change History panel.
  2. 手动快照:由用户手动创建的快照。它们有名称和可选的说明。选择或将鼠标悬停在手动快照上,会显示其作者的姓名和创建时间。只能以只读模式打开。
  3. Auto snapshots: Snapshots created automatically when you close the solution and every 40 minutes while the solution is opened. Auto snapshots have timestamp-based names (for example, "Auto snapshot - 2026-03-14 10:40 UTC").
  4. 发布快照:每次发布解决方案时自动创建的快照。它们的名称是已发布的解决方案版本。将鼠标悬停在发布快照上会显示其作者的姓名和创建时间。只能以只读模式打开。
    备注:

    有权访问解决方案的任何人都可使用所有快照,包括手动快照。

“更改历史记录” 面板按时间顺序列出所有快照,并显示其:

  • 版本号和说明(例如,“v1.1.0- 包括反馈表单”)。
  • 作者和时间戳(例如,“2 个月前,作者:John Doe”)。
  • (例如,“测试 NetSuite 集成之前进行稳定的内部版本”)。

You can use the Filter button to control which types of snapshots appear in the Change History panel.

When you select a snapshot from the panel, you are viewing the solution as it existed at that particular point in time. A temporary banner message appears when browsing a past snapshot, informing you that you are viewing a past version of the solution in read-only mode.

docs image

Auto snapshots have retention limits based on your organization's entitlements and may vary depending on the licensing plan:

  1. Per-solution limit: Each solution retains a maximum number of auto snapshots. When this limit is reached, the oldest snapshots are automatically removed as new ones are added.
  2. Time-based limit: Auto snapshots older than a configured retention period are automatically removed.

要创建新的手动快照:

  1. 打开“更改历史记录”面板。确保已选择“当前版本”快照。
  2. 选择面板右上角的“创建快照”按钮。
  3. 输入快照的名称。
  4. (可选)按Tab键或选择“添加说明”字段以输入说明。
  5. 单击 Studio Web 设计器中的任意位置,或按Enter键。系统将创建新快照,并将其添加到“更改历史记录” 面板中。

快照的主要功能之一是能够将解决方案还原到特定时间点。默认情况下,从快照还原解决方案会创建最新快照(即,当前版本)的副本以供参考。这可确保您不会丢失在最新版本的解决方案上所做的任何工作。

要访问“还原”功能,请执行以下操作:

  1. 打开“更改历史记录”面板。
  2. 将鼠标悬停在手动快照或发布快照上。
  3. 选择“还原”按钮。系统将显示“还原快照”窗口。
  4. “标题”字段下,输入最新快照副本的必填名称。
  5. (可选)输入对解决方案更新所做的说明。
  6. 选择“还原”按钮。此时将显示一条横幅消息,通知您解决方案已成功还原到该特定时间点。
  7. 或者,选择“还原但不保存” ,以放弃解决方案的最新版本。

选择“还原但不保存”,可在不保存最新快照(当前版本快照)的情况下还原解决方案。这意味着系统将删除最新版本的解决方案。

常见问题

Do auto snapshots affect performance?

No. Auto snapshots are created in the background and do not block or slow down your work in the designer.

Can I delete individual auto snapshots?

No. Auto snapshots are managed automatically by Studio Web and cannot be deleted individually. Old auto snapshots are removed automatically based on the retention policy.

Do auto snapshots count toward my storage?

Yes. Auto snapshots use cloud storage. The retention limits ensure that storage usage stays bounded.

Are auto snapshots visible to everyone who has access to the solution?

Yes. Like all snapshots, auto snapshots are available for anyone who has access to the solution.

What happens to auto snapshots on shared solutions?

Shared solutions follow the same auto snapshot policy as owned solutions. Auto snapshots are created for any user who opens and works on the solution, and all snapshots are visible to anyone with access.

Can I create auto snapshots for local solutions?

No. Auto snapshots are only available for cloud solutions.

本地工作区中的版本控制

Studio Web 与 Git 集成,可为计算机上本地保存的解决方案启用高效的版本控制。

作为先决条件,请确保您正在使用本地保存的解决方案:

  1. 打开 Studio Web。
  2. 导航至“本地工作区”页面。
  3. 通过“打开解决方案” 按钮打开现有的本地解决方案,或使用“新建” 按钮创建一个新的解决方案。您还可以从先前打开的解决方案列表中选择现有解决方案。
  4. 选择在本地保存现有解决方案的文件夹,或指定应用于创建新解决方案的文件夹。此时将打开新的本地解决方案。
    重要提示:

    当浏览器提示时,允许 Studio Web 编辑文件。

  5. 打开至版本控制面板。

首次打开该面板时,系统会指示您初始化本地 Git 存储库。此为必要步骤,选择“初始化存储库”按钮后系统会自动执行此步骤。在初始化本地 Git 存储库时,Studio Web:

  • 创建一个 .gitignore。
  • 使用解决方案中的当前文件进行初始提交。
  • 创建一个名为“master”的本地分支。

创建和管理分支

版本控制面板的左上角选择分支名称,以:

  1. 通过“创建新分支”按钮创建新分支。输入分支名称,然后选择“创建” 。该分支将添加到可用分支列表中。
  2. 通过从本地分支下的列表中选择分支名称来切换分支。切换分支时,解决方案将重新加载。

Branches are grouped under local branches and remote branches. When selecting a remote branch, a message window informs you that switching to the remote branch means losing the changes made currently to your local branch and resetting the local branch to the state of the remote branch.

Connecting to a remote repository

To connect your existing local repository to a remote repository:

  1. Select the options icon in the top-right corner of the Version control panel.
  2. Select the Connect to GitHub button. The GitHub authentication window appears.
  3. Authenticate to GitHub using the GitHub Integration Service connector.
  4. After successfully authenticating, enter the URL for your remote repository in the Repository URL field.
  5. Select the Save configuration button.
  6. Alternatively, select Back to return to the Version control panel.

提交并推送更改

创建解决方案时,您所做的更改将记录在“版本”控制面板中的“更改”下。选择列表中的每项更改,即可并排查看更改情况。更改已突出显示,如下所示:

  • 绿色和 + 图标表示项目文件中已添加某些内容。
  • 橙色和 / 图标表示该文件已被修改。
  • 红色和 - 图标表示某些内容已从项目文件中删除。

要提交对解决方案所做的更改并将其推送到您当前所在的分支,请执行以下操作:

  1. 选择“版本” 控制面板中的“提交”按钮。
  2. 输入提交消息。提交中包含的更改显示在“更改”部分下。
  3. 选择“提交” 。您的新提交内容将显示在“提交历史记录”部分中。

查看提交历史

“提交历史记录”部分按时间顺序包含从初始提交开始的所有提交内容。每次提交都会显示有关其作者和创建时间的信息。

从列表中选择一个提交版本,然后查看该特定提交版本的“更改”部分。

右键单击某个提交版本,然后选择:

  • 从此提交开始创建分支,从此提交开始创建一个新的本地分支。为新分支命名,然后选择创建。新分支现已处于活动状态,并显示在可用分支列表中。
  • 将本地分支重置为此提交内容,可将当前分支恢复到创建提交时的状态。比本次提交更新的提交内容将自动从“提交历史记录”中删除。docs image

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新