Editing
Convert the SVN repository to GitLab
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Following this guide allows one to convert a specific SVN repository to a GitLab project, including turning SVN revisions to commits and the participants to GitLab users.''' * SSH to phobos.apoyar This server is reserved for maintenance/support and has all relevant software installed. * Obtain the SVN url of the repository in question. The one used has already been converted, use it as an example. * cd to /home/neal/git/svn This is an empty folder reserved for the conversion process: ** git svn clone --no-minimize-url <nowiki>http://saturn:8008/svn/Apoyar/BMAPI/BleckmannApi</nowiki> . * Examine the results in the folder. Use git status to check. * Create new project on GitLab. Copy its url. In this example, the BleckmannAPI project has been used, please use yours. * Push to GitLab: ** git remote add origin <nowiki>https://gitlab.apoyar.eu/root/BleckmannAPI.git</nowiki> ** git push βu origin master * GitLab will now show all commits and files of the repository. Only master branch will exist * if there is a non-existing user(s) in commits: ** Open the project in GitLab ** Browse through the commits ** Copy and paste all user emails you found to text file ** Make the master branch unprotected ** Copy the git-author-rewrite.sh file (residing in the parent folder: /home/neal/git/) to the current svn folder. ** '''Edit the file and replace the following values with their current ones:'''. *** OLD_EMAIL=" " *** CORRECT_NAME=" " *** CORRECT_EMAIL ** Run ./git-author-rewrite.sh ** Push the changes over: *** git push --force --tags origin 'refs/heads/*' ** check whether itβs OK ** delete the backup: *** git update-ref -d refs/original/refs/heads/master ** if there are more usernames just repeat the steps from '''Edit the file and replace the values in question'''.
Summary:
Please note that all contributions to Apoyar Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Apoyar Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Apoyar Infrastructure
Active Directory
Recent changes
Random page
Upload file
Tools
What links here
Related changes
Special pages
Page information