Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dev:extensions:svn_to_github [2014/11/07 10:28]
plg information about tools are given on another page
dev:extensions:svn_to_github [2015/08/22 20:03] (current)
flop25
Line 1: Line 1:
 +<WRAP round tip>
 +This tutorial describes how to move from SVN to Github, and does not force you to do so. Piwigo.org SVN repository is still alive and there is no plan to shut it down.
 +</WRAP>
 +
 ====== Migrate a plugin from Piwigo.org SVN to Github ====== ====== Migrate a plugin from Piwigo.org SVN to Github ======
  
Line 31: Line 35:
 === Everyone === === Everyone ===
 You will also need a little tool created by Atlassian: [[https://bitbucket.org/atlassian/svn-migration-scripts/downloads/svn-migration-scripts.jar|svn-migration-scripts.jar]]. You will also need a little tool created by Atlassian: [[https://bitbucket.org/atlassian/svn-migration-scripts/downloads/svn-migration-scripts.jar|svn-migration-scripts.jar]].
 +
 +<wrap round tip>
 +If you have several repositories to migrate you can also use this NodeJS script I (Mistic) created to migrate my 25 plugins: [[https://gist.github.com/mistic100/017a848ff619f0624dde|piwigo-svn2github.js]].
 +</wrap>
  
 ===== Prepare ===== ===== Prepare =====
-In order to get a consistent commit history on Github you will have to tell Git SVN who is who. Open a terminal where ''svn-migration-scripts.jar'' is located (Shift+Click on Windows) and enter the following command:+In order to get a consistent commit history on Github you will have to tell Git SVN who is who. Open a terminal where ''svn-migration-scripts.jar'' is located (Shift+Click on Windows or right-click->Git Bash Here) and enter the following command:
  
 <code> <code>
Line 49: Line 57:
  
 === Adapt authors' file === === Adapt authors' file ===
-Now modify the left part of each line to match an actual Github accounts. The email must be one of the emails associated to the Github account.+Now modify the right part of each line to match an actual Github accounts. The email must be one of the emails associated to the Github account.
  
 You will certainly get ''TranslationTeam'' in this file, the SVN user used to commit language files. Complete the line as following: You will certainly get ''TranslationTeam'' in this file, the SVN user used to commit language files. Complete the line as following:
Line 82: Line 90:
 [[https://github.com/new|Create a new repository]]. You must leave it empty (no README.md, no LICENSE, no .gitignore). [[https://github.com/new|Create a new repository]]. You must leave it empty (no README.md, no LICENSE, no .gitignore).
  
-Still in your terminal type:+Still in your terminal (on windows the previous command should have created a new folder /YOURPLUGIN, so redo right-click->Git Bash Here) type:
  
 <code> <code>
 
Back to top
dev/extensions/svn_to_github.1415356083.txt.gz · Last modified: 2014/11/07 10:28 by plg
 
 
github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact