版权声明:转载请附明原文链接 https://blog.csdn.net/songyuequan/article/details/84647270
1. 编写 authors.txt
zhangsan = zhangsan <[email protected]>
2. clone 项目
git svn clone <svn url> --authors-file=authors.txt -T trunk -b branches -t tags
3. 设置Git 服务地址
git remote add origin <remote url>
4. 推送到Git 远程仓库(本地引用推送到远程仓库引用)
基于 Git仓库.git文件夹目录介绍中对Git各种引用的理解,我们直接把本地的【分支引用】推送到远程的【分支引用】
git push origin refs/remotes/origin/*:refs/heads/*