We've been assigned new laptops at work and I'm looking to move my git-svn repository to the new device. The svn server URL or my credentials haven't changed.
The problem is git svn rebase
doesn't want to work any more - it just hangs, and git svn fetch
fetches everything from revision one. It's an old codebase of over 70k commits and re-importing everything takes at least 3 working days (doing about 20k commits a day), as I've had to rediscover.
I'm aware of shallow cloning but I'm interested in migrating the existing local repository.
Things I've tried:
git clone
the old git repo from the new laptop In both cases I made sure my global git config is the same and that svn-remote points to the correct URL.
Clarification :
Technically you should simply be able to copy your working directory together with the .git
subdirectory from your old workstation to the new one. I used this as a workaround for slow git-svn copy on windows machines earlier.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.