好的模板网站建设,html网页制作app,文创产品营销方案,广告机器设备的价格表安装git
确保安装了git
新建一个文件夹svn-git
在文件夹中新建userinfo.txt文件#xff0c;映射svn用户,这个文件主要是用于将SVN用户映射为Git用户#xff08;昵称及其邮箱#xff09;。
userinfo.txt具体格式如下#xff1a;
admin admin admin163.com
lis…安装git
确保安装了git
新建一个文件夹svn-git
在文件夹中新建userinfo.txt文件映射svn用户,这个文件主要是用于将SVN用户映射为Git用户昵称及其邮箱。
userinfo.txt具体格式如下
admin admin admin163.com
lisi lisimominglong163.com
lmh lmh lmh163.com
ql ql ql163.comClone SVN项目至本地Git
进入svn-git文件夹右键“git Bash”打开git命令窗口然后执行命令
git svn clone svn://47.92.83.81/test-repo --authors-fileuserinfo.txt#切换git账号winr 输入control打开“用户账户”-》管理凭据“删除git凭据
git config --global user.name root
git config --global user.emailadminexample.comgit remote add origin http://39.98.166.121:9980/root/test-repo.git
#创建main分支PS:如果报”error: src refspec main does not match any“执行
git checkout -b main
git pull --rebase origin main
git push -u origin main 参考文档
svn 代码迁移到git_svn代码迁移到git-CSDN博客