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:
install
git-svn
if haven't already.clone svn repository command:
git svn clone svnurl /path/to/svnclone
this creates git repository @
/path/to/svnclone
full subversion commit history.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
Post a Comment