Skip to content

Commit dee8ba5

Browse files
committed
Added Git migration workaround branch recreation
1 parent 4b67ecf commit dee8ba5

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

content/en/docs/developerportal/repository/team-server/migrate-to-git.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,28 @@ To set up your local SVN repository, follow these steps:
136136

137137
{{% alert color="info" %}}To inspect files from a historical revision, use **TortoiseSVN** and select **Update to revision** to check a specific revision.{{% /alert %}}
138138

139+
#### Workaround to Retain Branch Contents
140+
141+
During a migration without history, all branches except 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 backup branch contents and recreate them post-migration.
142+
143+
{{% alert color="info" %}}
144+
145+
We recommend first attempting these steps on a dummy project to familiarize yourself with the process.
146+
147+
{{% /alert %}}
148+
149+
Follow these steps:
150+
151+
1. For each branch you want to retain:
152+
* Check out the SVN branch.
153+
* Merge the latest state of the main branch into the branch you want to retain. This ensures there is a common base, so conflict resolution on this branch will work post-migration.
154+
* Zip the entire project folder (except the *.svn* folder). Clearly name this so you recognize which branch it represents afterwards.
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+
* Create a new branch from the main branch in Studio Pro and clone it locally.
158+
* Overwrite the contents of the project folder (except the *.git* folder) with the contents from the zip.
159+
* From Studio Pro, commit "Branch recreated" and push to server.
160+
139161
### Migrating With History {#with-history}
140162

141163
During migration with history, all app history, including revisions for all branches, is copied from SVN to Git.

0 commit comments

Comments
 (0)