Adding svn commits to git repo -


we downloaded , converted svn repository git repository without svn commit history , added git commits.

do know how can add previous svn commit history git repository without losing new ones?

i believe can, , testing simplified example repository worked me:

  1. install git-svn if haven't already.

  2. clone svn repository command:

    git svn clone svnurl /path/to/svnclone 

    this creates git repository @ /path/to/svnclone full subversion commit history.

  3. in git repository started make changes, add svnclone remote, , rebase on top of it:

    cd /path/to/gitrepo git remote add svnclone /path/to/svnclone git fetch svnclone git rebase svnclone/master 

this last step take commits in svnclone , replay new commits on top of them. result, end same content in project, having complete commit history, both old commits in subversion, , new commits did in git.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -