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/developerportal/repository/team-server/migrate-to-git.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,29 @@ To set up your local SVN repository, follow these steps:
136
136
137
137
{{% alert color="info" %}}To inspect files from a historical revision, use **TortoiseSVN** and select **Update to revision** to check a specific revision.{{% /alert %}}
138
138
139
+
#### Workaround to Retain Branch Contents
140
+
141
+
During a migration without history, all branches apart for the main branch are removed. As it is not always possible to converge all branches by merging them into the main branch, you can manually back up branch contents, and recreate them post-migration.
142
+
143
+
{{% alert color="info" %}}
144
+
Mendix recommends to first attempt these steps on a dummy project to familiarize yourself with the process.
145
+
{{% /alert %}}
146
+
147
+
Follow these steps:
148
+
149
+
1. For each branch you want to retain:
150
+
151
+
1. Check out the SVN branch.
152
+
2. Merge the latest state of the main branch into the branch you want to retain. This ensures there is a common base, so you can resolve any conflicts on this branch post-migration.
153
+
3. Create a compressed .zip version of the entire project folder, except for the *.svn* folder. Clearly name the .zip folder so you recognize which branch it represents afterwards.
154
+
155
+
2. Migrate to Git without history.
156
+
3. Recreate the branches you wanted to retain. Do this before upgrading the main branch to a different Mendix version. For each branch:
157
+
158
+
1. Create a new branch from the main branch in Studio Pro and clone it locally.
159
+
2. Overwrite the contents of the project folder, except for the *.git* folder, with the contents of the .zip.
160
+
3. From Studio Pro, commit your changes with a *Branch recreated* message and push to the server.
161
+
139
162
### Migrating With History {#with-history}
140
163
141
164
During migration with history, all app history, including revisions for all branches, is copied from SVN to Git.
0 commit comments