使用Git Bash(msysgit)将Svn的项目迁移到Git上
eg:SVN服务器项目路径: https://cnksittest03.ks.corp.lsh.com:8443/svn/EIMS/
1. 创建一个文件夹(GitHubProgram),并使用git bash切换到该文件夹
$ git svn clone https://cnksittest03.ks.corp.lsh.com:8443/svn/EIMS/
这时候MvcGitFromSVN文件夹就会多出个文件夹EIMS
2. 切换到EIMS目录
使用git bash执行(先在github create Repositories)
3. 使用git bash执行: git push origin –all
这时候到github页面就可以看到push上去的项目了(git可能会抛出异常)
4.如果第三步异常(操作第四、五步),使用 git pull --rebase origin master 命令,将远程gitlab仓库更新下载到本地
5.再次使用 git push -u origin master 命令上传