Hi,
I'm working on a web site project that is currently tracked in svn but is going to move to git once someone else has time to set up a new server and stuff. It's a long story, but in the meantime I've made my own git repository from some code I had, and worked on it quite a bit. I didn't use git svn clone because I'm overseas and my internet connection is weird and requires a proxy for HTTP, and it doesn't seem to let git svn through. In any case, I've been developing in my own git repository, but eventually once the project actually gets imported properly I'm going to need to rebase my work onto the git-svn cloned stuff. Will git rebase
work properly for this?
One complication is that I was actually working in a virtual machine and for many commits I hadn't realized that I hadn't set the user.name and user.email config entries so the commits are from the vm's local user, which is kind of weird. Would it be better to just gather all my changes into diff files and then apply them on top of the new branch once it's created?
Another complication is that the SVN use before was kind of half-hearted, so there were actually uncommitted changes on the production server that I didn't have. Actually, I had an older revision of the code in the first place that wasn't even the SVN head, so I was missing some stuff on top of that. What is the best way to proceed?
One final question is that if I do import the SVN repository via git svn
(I just checked and it seems to be working now) but I don't add an authors-file, will I later be able to rebase my changes onto a properly imported branch with an authors-file?
Oh, a new complication. I imported the SVN repository myself using git svn
, a grueling process which took the better part of two days on this slow connection. However, after finally finishing the clone, I realized that in the SVN repository the code was all in a subdirectory, but in my git repository the root of the repository was also the root of directory. If this is a little confusing, it's basically like this
SVN:
\dir\codez
git:
\codez
How can I combine the two repositories? I hope that I can still use rebase, but this seems like a really weird situation. It sounds similar to submodules, but I don't think that's quite what I need.