Skip to content

Commit 070402c

Browse files
Merge pull request #9560 from tknippenberg/SOLP-3139
On-premises Git screenshot update + Subversion removal
2 parents 4c0b4c4 + c49b238 commit 070402c

24 files changed

+49
-69
lines changed

content/en/docs/refguide/version-control/on-premises-git.md

Lines changed: 27 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ With most providers, HTTP basic authentication takes the form of using of person
4242

4343
To use PAT (or another equivalent), you need to specify it in the **Password** field when Studio Pro requests credentials for the version control server:
4444

45-
{{< figure src="/attachments/refguide/version-control/on-premises-git/sign-in-dialog.png" alt="Sign In dialog" class="no-border" >}}
45+
{{< figure src="/attachments/refguide/version-control/on-premises-git/sign-in-dialog.png" alt="Sign In dialog" class="no-border" width="600">}}
4646

4747
{{% alert color="info" %}}When using a PAT for the Mendix platform, fill in your email in the **Username** field. For more information on how to create a PAT for the Mendix platform, see the [Personal Access Tokens](/community-tools/mendix-profile/user-settings/#pat) section in *User Settings*.{{% /alert %}}
4848

@@ -88,15 +88,15 @@ To interact with this private repository from Studio Pro, you need a link to the
8888

8989
To use on-premise Git, you need to configure name and email values that will be used to identify your commit in Studio Pro by navigating to **Edit** > **Preferences** > **Version Control**:
9090

91-
{{< figure src="/attachments/refguide/version-control/on-premises-git/preferences-git.png" alt="Preferences dialog" class="no-border" >}}
91+
{{< figure src="/attachments/refguide/version-control/on-premises-git/preferences-git.png" alt="Preferences dialog" class="no-border" width="800" >}}
9292

9393
Studio Pro now is set up to support Git.
9494

9595
### Creating an App {#create-app}
9696

9797
Create an unversioned app in Studio Pro:
9898

99-
{{< figure src="/attachments/refguide/version-control/on-premises-git/app-settings.png" alt="App Settings dialog" class="no-border" >}}
99+
{{< figure src="/attachments/refguide/version-control/on-premises-git/app-settings.png" alt="App Settings dialog" class="no-border" width="600">}}
100100

101101
Once the app is created, you can upload it to your private Git repository. For more information on how to upload it, see the [Uploading to the Private Git Server](#upload-to-private-git-server) section below.
102102

@@ -116,7 +116,7 @@ Now that you have a Git app on your server, you can download it to another direc
116116
1. Click **OK**.
117117
1. In the **Sign In** dialog box, enter your credentials:
118118

119-
{{< figure src="/attachments/refguide/version-control/on-premises-git/sign-in-dialog.png" alt="Sign In dialog" class="no-border" >}}
119+
{{< figure src="/attachments/refguide/version-control/on-premises-git/sign-in-dialog.png" alt="Sign In dialog" class="no-border" width="600">}}
120120

121121
1. Enter username (it can be anything except empty) and use PAT from your Git provider you created earlier as the password.
122122

@@ -148,9 +148,7 @@ For the previous checkout method do the following:
148148
1. Open from previous checkout.
149149
2. Enable the **Private server** radio button and enter the link to the repository.
150150
3. Click **Connect**.
151-
4. If you have checked out the app at least once, you can then pick one of the existing locations on disk and the app will open (shown here with two previous checkouts):
152-
153-
{{< figure src="/attachments/refguide/version-control/on-premises-git/open-app-dialog.png" alt="Open App dialog" class="no-border" >}}
151+
4. If you have checked out the app at least once, you can then pick one of the existing locations on disk and the app will open.
154152

155153
For the previous local disk method do the following:
156154

@@ -169,28 +167,34 @@ The repository has to be completely empty (this includes the `README.md` and `.g
169167

170168
To upload your app, do the following:
171169

172-
1. Open the app in Studio Pro and go to **Version Control > Upload to Version Control Server**:
173-
174-
{{< figure src="/attachments/refguide/version-control/on-premises-git/upload-to-vc-menu.png" alt="Upload to Version Control Server Menu" class="no-border" >}}
175-
170+
1. Open the app in Studio Pro and go to **Version Control** > **Upload to Version Control Server**.
176171
2. In the **Upload to Version Control Server** dialog box, select **Private server**.
177-
3. Select **Git** as the private server type (if you have both **Subversion** and **Git** enabled in the **Preferences Form**).
178-
4. Enter the link to the repository you want to upload this app to and click **OK**:
172+
3. Enter the link to the repository you want to upload this app to and click **OK**:
179173

180174
{{< figure src="/attachments/refguide/version-control/on-premises-git/upload-to-vc-server.png" alt="Upload to Version Control Server dialog" class="no-border" >}}
181175
It might ask you to sign into the server, depending on whether you have previously signed in and choose to stay logged in.
182-
5. You can see the upload process in the **Upload Project to Team Server** pop-up window.
176+
4. You can see the upload process in the **Upload Project to Team Server** pop-up window.
183177

184178
The app is uploaded successfully. You can check on your private server and see that the app is now on the selected repository:
185179

186180
{{< figure src="/attachments/refguide/version-control/on-premises-git/project-uploaded-confirmation.png" alt="App Uploaded confirmation window" class="no-border" >}}
187181

188-
### Moving a Subversion App to Git
182+
### Moving an Existing Versioned App to Private Git
183+
184+
If you already have an existing versioned app that you would like to upload to your Git private server, you can fully migrate the history or start with a fresh repository.
185+
186+
#### Retaining History
187+
188+
To migrate a repository from one Git server to another private Git server, follow your new Git provider's documentation for transferring a complete repository clone to their platform.
189+
190+
After migration, download a fresh clone in Studio Pro from your private Git server.
191+
192+
{{% alert color="warning" %}} After migrating from Mendix Team Server, to link an existing folder to a new repository and avoid errors in Studio Pro, remove the `sprintr-project-id` setting from the *.git/config* file in your local repository clone.{{% /alert %}}
189193

190-
If you already have an existing versioned app (with Subversion) that you would like to upload to your Git private server instead, you can export it, then re-import it, and uploading it to your server.
194+
#### Starting with a Fresh Repository
191195

192196
{{% alert color="info" %}}
193-
This creates an unversioned app, based on the branch you are working on in Studio Pro. This means that you will not get version history or other branches in the Git repo.
197+
This process creates an unversioned app, based on the branch you are working on in Studio Pro. This means that you will not get version history or other branches in the Git repo.
194198

195199
You can move the whole app, including branches and history, to the Mendix Git repository by following the instructions in [Migrate to Git](/developerportal/general/migrate-to-git/)
196200
{{% /alert %}}
@@ -202,36 +206,22 @@ Follow the steps below:
202206

203207
{{< figure src="/attachments/refguide/version-control/on-premises-git/export-project-package-dialog.png" alt="Export App Package dialog" class="no-border" >}}
204208

205-
3. The **Progress** pop-up window appears, and once it is completed, you can close the app in **Studio Pro**:
206-
207-
{{< figure src="/attachments/refguide/version-control/on-premises-git/progress-dialog.png" alt="Progress dialog" class="no-border" >}}
208-
209-
4. Now you can import the package again, and from there you can choose to upload it to your Git private server. Go to **File** > **Import App Package**:
210-
211-
{{< figure src="/attachments/refguide/version-control/on-premises-git/import-project-package-menu.png" alt="Import App Package menu" width="250" class="no-border" >}}
209+
3. The **Progress** pop-up window appears, and once it is completed, you can close the app in **Studio Pro**.
212210

211+
4. Now you can import the package again, and from there you can choose to upload it to your Git private server. Open **File** > **Import App Package**.
213212
5. Once the file browser dialog box is open, navigate to the location you save the *.mpk* file during the export process.
214213
6. In the **Import App Package** dialog box, select **Private server** option in the **Where should we store your App?** section.
215-
7. In the **Private Server Type** option, select **Git** (if you have both **Subversion** and **Git** enabled in the **Preferences** form).
216-
8. Enter the link to the private repository in the address textbox and click **OK**. Remember, the repository **must be completely empty**, or **Studio Pro** will not be able to upload an app to it:
214+
7. Enter the link to the private repository in the **App repository address** field and click **OK**. Please note that the repository must be completely empty, or Studio Pro will not be able to upload an app to it:
217215

218216
{{< figure src="/attachments/refguide/version-control/on-premises-git/import-project-package-git-dialog.png" alt="Import Git Package menu" class="no-border" >}}
219217

220-
9. Click **OK**.
218+
8. Click **OK**.
221219

222-
After the import process is completed, your previous Subversion app will be now versioned using Git.
220+
After the import process is completed, your previously version controlled app will be now versioned using Private Git.
223221

224222
Note that your previous app still exists, **Studio Pro** will simply make an unversioned copy and upload it to your private Git server. So, in your **Recent Apps** list, you will still see both:
225223

226-
{{< figure src="/attachments/refguide/version-control/on-premises-git/recent-apps.png" alt="Recent Apps form" class="no-border" >}}
227-
228-
### Moving from Team Server to a Private Git Server
229-
230-
To migrate from Mendix Team Server to a private Git server, follow your Git provider's documentation for uploading a full repository clone to their platform.
231-
232-
After migration, download a fresh clone in Studio Pro from your private Git server.
233-
234-
{{% alert color="warning" %}} When redirecting an existing clone by updating the `config` file in the `.git` folder, make sure you remove the `sprintr-project-id` setting to prevent errors in Studio Pro. {{% /alert %}}
224+
{{< figure src="/attachments/refguide/version-control/on-premises-git/recent-apps.png" alt="Recent Apps form" class="no-border" width="600">}}
235225

236226
## Read More
237227

content/en/docs/refguide10/version-control/on-premises-git.md

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ For the previous checkout method do the following:
148148
1. Open from previous checkout.
149149
2. Enable the **Private server** radio button and enter the link to the repository.
150150
3. Click **Connect**.
151-
4. If you have checked out the app at least once, you can then pick one of the existing locations on disk and the app will open (shown here with two previous checkouts):
152-
153-
{{< figure src="/attachments/refguide10/version-control/on-premises-git/open-app-dialog.png" alt="Open App dialog" class="no-border" >}}
151+
4. If you have checked out the app at least once, you can then pick one of the existing locations on disk and the app will open.
154152

155153
For the previous local disk method do the following:
156154

@@ -169,28 +167,34 @@ The repository has to be completely empty (this includes the `README.md` and `.g
169167

170168
To upload your app, do the following:
171169

172-
1. Open the app in Studio Pro and go to **Version Control > Upload to Version Control Server**:
173-
174-
{{< figure src="/attachments/refguide10/version-control/on-premises-git/upload-to-vc-menu.png" alt="Upload to Version Control Server Menu" class="no-border" >}}
175-
170+
1. Open the app in Studio Pro and go to **Version Control** > **Upload to Version Control Server**.
176171
2. In the **Upload to Version Control Server** dialog box, select **Private server**.
177-
3. Select **Git** as the private server type (if you have both **Subversion** and **Git** enabled in the **Preferences Form**).
178-
4. Enter the link to the repository you want to upload this app to and click **OK**:
172+
3. Enter the link to the repository you want to upload this app to and click **OK**:
179173

180174
{{< figure src="/attachments/refguide10/version-control/on-premises-git/upload-to-vc-server.png" alt="Upload to Version Control Server dialog" class="no-border" >}}
181175
It might ask you to sign into the server, depending on whether you have previously signed in and choose to stay logged in.
182-
5. You can see the upload process in the **Upload Project to Team Server** pop-up window.
176+
4. You can see the upload process in the **Upload Project to Team Server** pop-up window.
183177

184178
The app is uploaded successfully. You can check on your private server and see that the app is now on the selected repository:
185179

186180
{{< figure src="/attachments/refguide10/version-control/on-premises-git/project-uploaded-confirmation.png" alt="App Uploaded confirmation window" class="no-border" >}}
187181

188-
### Moving a Subversion App to Git
182+
### Moving an Existing Versioned App to Private Git
183+
184+
If you already have an existing versioned app that you would like to upload to your Git private server, you can fully migrate the history or start with a fresh repository.
185+
186+
#### Retaining History
187+
188+
To migrate a repository from one Git server to another private Git server, follow your new Git provider's documentation for transferring a complete repository clone to their platform.
189+
190+
After migration, download a fresh clone in Studio Pro from your private Git server.
191+
192+
{{% alert color="warning" %}} After migrating from Mendix Team Server, to link an existing folder to a new repository and avoid errors in Studio Pro, remove the `sprintr-project-id` setting from the *.git/config* file in your local repository clone. {{% /alert %}}
189193

190-
If you already have an existing versioned app (with Subversion) that you would like to upload to your Git private server instead, you can export it, then re-import it, and uploading it to your server.
194+
#### Starting with a Fresh Repository
191195

192196
{{% alert color="info" %}}
193-
This creates an unversioned app, based on the branch you are working on in Studio Pro. This means that you will not get version history or other branches in the Git repo.
197+
This process creates an unversioned app, based on the branch you are working on in Studio Pro. This means that you will not get version history or other branches in the Git repo.
194198

195199
You can move the whole app, including branches and history, to the Mendix Git repository by following the instructions in [Migrate to Git](/developerportal/general/migrate-to-git/)
196200
{{% /alert %}}
@@ -202,37 +206,23 @@ Follow the steps below:
202206

203207
{{< figure src="/attachments/refguide10/version-control/on-premises-git/export-project-package-dialog.png" alt="Export App Package dialog" class="no-border" >}}
204208

205-
3. The **Progress** pop-up window appears, and once it is completed, you can close the app in **Studio Pro**:
206-
207-
{{< figure src="/attachments/refguide10/version-control/on-premises-git/progress-dialog.png" alt="Progress dialog" class="no-border" >}}
208-
209-
4. Now you can import the package again, and from there you can choose to upload it to your Git private server. Go to **File** > **Import App Package**:
210-
211-
{{< figure src="/attachments/refguide10/version-control/on-premises-git/import-project-package-menu.png" alt="Import App Package menu" width="250" class="no-border" >}}
209+
3. The **Progress** pop-up window appears, and once it is completed, you can close the app in **Studio Pro**.
212210

211+
4. Now you can import the package again, and from there you can choose to upload it to your Git private server. Go to **File** > **Import App Package**.
213212
5. Once the file browser dialog box is open, navigate to the location you save the *.mpk* file during the export process.
214213
6. In the **Import App Package** dialog box, select **Private server** option in the **Where should we store your App?** section.
215-
7. In the **Private Server Type** option, select **Git** (if you have both **Subversion** and **Git** enabled in the **Preferences** form).
216-
8. Enter the link to the private repository in the address textbox and click **OK**. Remember, the repository **must be completely empty**, or **Studio Pro** will not be able to upload an app to it:
214+
7. Enter the link to the private repository in the address textbox and click **OK**. Remember, the repository **must be completely empty**, or **Studio Pro** will not be able to upload an app to it:
217215

218216
{{< figure src="/attachments/refguide10/version-control/on-premises-git/import-project-package-git-dialog.png" alt="Import Git Package menu" class="no-border" >}}
219217

220-
9. Click **OK**.
218+
8. Click **OK**.
221219

222-
After the import process is completed, your previous Subversion app will be now versioned using Git.
220+
After the import process is completed, your previously version controlled app will be now versioned using Private Git.
223221

224222
Note that your previous app still exists, **Studio Pro** will simply make an unversioned copy and upload it to your private Git server. So, in your **Recent Apps** list, you will still see both:
225223

226224
{{< figure src="/attachments/refguide10/version-control/on-premises-git/recent-apps.png" alt="Recent Apps form" class="no-border" >}}
227225

228-
### Moving from Team Server to a Private Git Server
229-
230-
To migrate from Mendix Team Server to a private Git server, follow your Git provider's documentation for uploading a full repository clone to their platform.
231-
232-
After migration, download a fresh clone in Studio Pro from your private Git server.
233-
234-
{{% alert color="warning" %}} When redirecting an existing clone by updating the `config` file in the `.git` folder, make sure you remove the `sprintr-project-id` setting to prevent errors in Studio Pro. {{% /alert %}}
235-
236226
## Read More
237227

238228
* [Version Control Reference Guide](/refguide10/version-control/)
Loading
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading

0 commit comments

Comments
 (0)