Menu

#46 Migration to Git

1.0
closed
RFE (45)
2021-02-27
2015-10-27
No

I need some help to translate the game and I know how to accept a modification without having to give write access to a contributor with Git.

I plan to use this script for the migration:
https://gist.github.com/Tuxdude/2968478

I'll have to modify this script to use another Git repository as I have no plan to use Github. I don't want to waste the history of the commits since 2006.

Maybe using git svn clone and git push would be enough. I'll have to call "git config user.name" and "git config user.email" before committing.

Discussion

  • Julien Gouesse

    Julien Gouesse - 2015-10-27
    • status: open --> accepted
     
  • Julien Gouesse

    Julien Gouesse - 2015-10-27

    Local backup of the Subversion repository done with:
    rsync -av svn.code.sf.net::p/tuer/code sfnet

     
  • Julien Gouesse

    Julien Gouesse - 2015-10-28

    Chris Tsai did an excellent suggestion to use the backup with git svn clone:
    https://sourceforge.net/p/forge/site-support/841/#51d4

     
  • Julien Gouesse

    Julien Gouesse - 2015-10-28

    This command line reuses the previous backup, it seems to work:
    git svn clone file:///home/gouessej/Documents/programmation/java/backup/sfnet/code/

     
  • Julien Gouesse

    Julien Gouesse - 2015-10-28

    I have to add the remote and to push, it seems to work:
    git remote add origin ssh://gouessej@git.code.sf.net/p/tuer/sourcecode
    git push -u origin master

     
  • Julien Gouesse

    Julien Gouesse - 2015-10-28

    I should use git filter-branch --msg-filter '
    sed -e "/git-svn-id:/d"
    '

    as it's indicated here:
    http://www.yterium.net/Migrer-un-projet-SVN-vers-GIT
    Those things aren't very useful.

     
  • Julien Gouesse

    Julien Gouesse - 2015-10-29

    The complete procedure is this further:
    cd /home/gouessej/Documents/programmation/java/backup/
    rsync -av svn.code.sf.net::p/tuer/code sfnet
    mkdir sfnet_git
    cd sfnet_git
    git svn clone file:///home/gouessej/Documents/programmation/java/backup/sfnet/code/
    cd code
    git filter-branch --msg-filter '
    sed -e "/git-svn-id:/d"
    '
    git remote add origin ssh://gouessej@git.code.sf.net/p/tuer/sourcecode
    git push -u origin master

     
  • Julien Gouesse

    Julien Gouesse - 2021-02-27

    I've just done:

    cd /home/gouessej/Documents/programmation/java/backup/
    rsync -av svn.code.sf.net::p/tuer/code sfnet
    mkdir sfnet_git
    cd sfnet_git
    git svn clone file:///home/gouessej/Documents/programmation/java/backup/sfnet/code/
    cd code
    git filter-branch --msg-filter '
    sed -e "/git-svn-id:/d"
    '
    git remote add origin ssh://gouessej@git.code.sf.net/p/tuer/git
    git push -u origin master
    
     
  • Julien Gouesse

    Julien Gouesse - 2021-02-27

    The switch to Git has been done today (Saturday 27th October 2021). The documentation has been updated. The external links (mostly on Javagaming.org, Wordpress and StackOverflow) will be updated soon.

     
  • Julien Gouesse

    Julien Gouesse - 2021-02-27
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB