PlasticSCM 将现有存储库拉入新工作区

PlasticSCM pull existing repo into new workspace

我正在尝试为我在 Plastic Cloud 上受邀访问的存储库创建一个本地工作区。如果我有服务器 name/port 和存储库名称,我将如何 "clone" 本地项目供我处理。我知道这是一个基本问题,但 Plastic 文档非常无用。邀请我参与该项目的人告诉我,我需要在 GUI 的 "Cloud" 部分搜索服务器,然后当 repo 出现时,右键单击并创建一个新的工作区。当 repo 出现时,右击只给出 "Create New Sync View".

Join a Cloud project using the wizard

When you start Cloud Edition for the first time, you should see a screen like the following:

Where you can enter your Cloud Credentials.

After you enter your credentials, you go to the next screen where you can "join an existing cloud project" and then all the local repo creation and workspace creation is done for you.

Join a Cloud project manually - screencast

In case you already had Plastic SCM installed and configured, then the wizard will not show up, but joining the project is still quite easy.

The following screencast shows how to create a local repo joined to cloud manually: https://youtu.be/ECVAHTH8Dcg.

Join a Cloud project manually - step by step

Let's now check how to do it manually (which is the same you would do for a regular non-cloud repo you want to replicate).

First create a new local repo to host the clone from Cloud. Go to "repositories" and then click "Create new repo".

Now create a new workspace for this new local repo: (you know, go to "workspaces" first...)

And finally you can pull branches from the Cloud... but you know how to do that from the sync view or even the Branch Explorer (just right click on "main" and do "pull from...").

From the command line

By the way, it is less visual but faster from the command line:

cm mkrep localrep@local
cm mkwk localworkspace path_to_the_workspace
cm replicate main@cloud_repo@your_cloud_org@cloud localrep@local

Hope it helps!