...
- In Bitbucket, create a project by clicking Create Project or select the existing one.
- Add an empty Git repository to your project by clicking Create Repository or select the existing repository.
- Specify To specify the settings for the initial configuration of a Subversion project that you want to import or mirror. To do this:
- On an empty repository page, click
- In the existing non-empty repository, click
Specify the following details: Repository Settings, and then click SVN Mirror in the sidebar menu. - URL to the root folder of a Subversion project
- On an empty repository page, click
In the URL field, enter the URL to a Subversion project that you want to import or mirror.
Note |
---|
Each Subversion project is translated to a separate Git repository. |
- To specify manually the rules to map the Subversion directories to Git references at the next step, select Manual Configuration.
- To import or mirror the whole Subversion directory, which the URL points to, into a single Git master branch, select Single Directory Translation.
To allow SVN Mirror to identify branches and tags automatically relative to the trunk folder, select Automatic Configuration. To specify the trunk folder, click Select Trunk Path… , and then select the trunk folder.
Note The automatic layout identification may take some time in case your Subversion project has a large branch history.
Based on the option that you’ve selected, SVM Mirror generates the branch mapping rules and displays them on the Branches Mapping tab. You can adjust these rules to map the required Subversion directories correctly.
To reset the initial configuration settings that you’ve specified, click Reset to Defaults.
To restore previous configuration setting that you’ve specified, click Revert Changes.
To go back to the initial configuration of a Subversion project, click Back.
To import a Subversion project repository into a Git repository, click Import.
After import, the synchronization between the Git and the Subversion repositories is disabled.
Tip |
---|
To You can start synchronizing the Git repository with , which contains the imported Subversion project and , with the original Subversion repository at any time. To do this, click Enable on the Mirror Status pane. |
To mirror a Subversion project into a Git repository, click Mirror.
The Git repository with the imported Subversion project keeps stays synchronized with the original Subversion repository. The changes committed either with to Subversion or Git repositories are synchronized in both directions.
Note |
---|
In case you import or mirror into the non-empty Git repository, the commits that have already exist existed in this repository become unsynced. After import, resolve conflicts manually on the Unsynced Commits tab. |
Info |
---|
Importing and mirroring may take significant time. It depends on the size of your Subversion project. |