You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide/version-control/on-premises-git.md
+27-37Lines changed: 27 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ With most providers, HTTP basic authentication takes the form of using of person
42
42
43
43
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:
44
44
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">}}
46
46
47
47
{{% 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 %}}
48
48
@@ -88,15 +88,15 @@ To interact with this private repository from Studio Pro, you need a link to the
88
88
89
89
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**:
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.
102
102
@@ -116,7 +116,7 @@ Now that you have a Git app on your server, you can download it to another direc
116
116
1. Click **OK**.
117
117
1. In the **Sign In** dialog box, enter your credentials:
118
118
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">}}
120
120
121
121
1. Enter username (it can be anything except empty) and use PAT from your Git provider you created earlier as the password.
122
122
@@ -148,9 +148,7 @@ For the previous checkout method do the following:
148
148
1. Open from previous checkout.
149
149
2. Enable the **Private server** radio button and enter the link to the repository.
150
150
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):
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.
154
152
155
153
For the previous local disk method do the following:
156
154
@@ -169,28 +167,34 @@ The repository has to be completely empty (this includes the `README.md` and `.g
169
167
170
168
To upload your app, do the following:
171
169
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**.
176
171
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**:
179
173
180
174
{{< figure src="/attachments/refguide/version-control/on-premises-git/upload-to-vc-server.png" alt="Upload to Version Control Server dialog" class="no-border" >}}
181
175
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.
183
177
184
178
The app is uploaded successfully. You can check on your private server and see that the app is now on the selected repository:
### 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 %}}
189
193
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
191
195
192
196
{{% 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.
194
198
195
199
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/)
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**:
3. The **Progress** pop-up window appears, and once it is completed, you can close the app in **Studio Pro**.
212
210
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**.
213
212
5. Once the file browser dialog box is open, navigate to the location you save the *.mpk* file during the export process.
214
213
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:
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.
223
221
224
222
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:
### 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 %}}
Copy file name to clipboardExpand all lines: content/en/docs/refguide10/version-control/on-premises-git.md
+22-32Lines changed: 22 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -148,9 +148,7 @@ For the previous checkout method do the following:
148
148
1. Open from previous checkout.
149
149
2. Enable the **Private server** radio button and enter the link to the repository.
150
150
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):
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.
154
152
155
153
For the previous local disk method do the following:
156
154
@@ -169,28 +167,34 @@ The repository has to be completely empty (this includes the `README.md` and `.g
169
167
170
168
To upload your app, do the following:
171
169
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**.
176
171
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**:
179
173
180
174
{{< figure src="/attachments/refguide10/version-control/on-premises-git/upload-to-vc-server.png" alt="Upload to Version Control Server dialog" class="no-border" >}}
181
175
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.
183
177
184
178
The app is uploaded successfully. You can check on your private server and see that the app is now on the selected repository:
### 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 %}}
189
193
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
191
195
192
196
{{% 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.
194
198
195
199
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/)
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**:
3. The **Progress** pop-up window appears, and once it is completed, you can close the app in **Studio Pro**.
212
210
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**.
213
212
5. Once the file browser dialog box is open, navigate to the location you save the *.mpk* file during the export process.
214
213
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:
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.
223
221
224
222
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:
### 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
-
236
226
## Read More
237
227
238
228
*[Version Control Reference Guide](/refguide10/version-control/)
0 commit comments