git - How to clone local svn work directory to git repo and upload to github?
问题描述
The task is to migrate from local svn work directory to git repository and upload to remote github.
System: Windows 10 64 bit
git-svn version: 2.21.0.windows.1 (svn 1.9.7)
1- I installed TortoiseGit and try to apply git clone command and provide the origin to point to the github url using
username:tokem@github.company.com/repo.git
I got this error: "Using existing [svn-remote "svn"] svn-remote.svn.fetch already set to track :refs/remotes/git-svn"
2- Using GitBatch I run:
svn log -q svnurl | grep '^r[0-9]' | awk '{print $3}' | sort | uniq > authors.txt
I got the authors.txt correctly then I run:
git config --global --unset http.proxy
and
git svn clone file:///C/Users/Documents/GitHub/Repo --authors-file=C://authors.txt C://Users//Documents/GitHub/Repo_Git
I got the same error: git-svn windows Using existing [svn-remote "svn"] svn-remote.svn.fetch already set to track :refs/remotes/git-svn
Till now I couldn't clone local svn to git and then to upload to github, please help
I read git-svn documentation and read svn2git tool guide but don't help!
Thanks in advance, Mariam
解决方案
GitHub 在其源代码迁移工具帮助页面中推荐了一些工具。
警告:有几个“svn2git”工具:
- 这个 GitHub 帮助页面上推荐的一个是用 Ruby 实现的。
- https://stackoverflow.com/a/55475018/6352677中的那个是用 C++ 实现的。
推荐阅读
- azure-cosmosdb - 用于在现有容器上启用/禁用 CosmosDB 自动缩放器的 ARM 模板
- csv - 无法将数据加载到雪花中
- javascript - 如何用html中无序列表上的食物图标替换项目符号
- c# - 在 ASP.NET Core 中的 SQL-Connection 上禁用 TLS
- html - 堆栈上下文在 css 中究竟是如何工作的?
- mysql - 为什么在我的 sql 中这是错误的?它说检查版本
- java - Hibernate如何根据关系确定表的创建顺序?
- mysql - 需要将 Jmeter 结果存储到 MySql 数据库中
- scala - 将字符串的scala Seq转换为键值对
- vue.js - 无法在 VueJS CLI 中运行 addEventListener (resize) 来获取屏幕宽度