[英]How to remove git-svn from git repo?
I started working on a project 2 years ago and I chose SVN as the revision control system. 2年前,我开始从事一个项目,然后选择SVN作为版本控制系统。 Then in last year I decided to switch from SVN to GIT via
git svn clone
. 然后在去年,我决定通过
git svn clone
从SVN切换到GIT。 From then on, I never commit to old SVN repo again. 从那时起,我再也不会致力于旧的SVN回购。 I'm the only one using the repo so there is no branchs in both SVN and GIT.
我是使用回购协议的唯一人,因此SVN和GIT中都没有分支。
Now I want to remove the git-svn tag here: (I'm not sure if it is a tag.) 现在,我想在这里删除git-svn标签:(我不确定它是否是标签。)
All the commits and logs in old SVN repo must be retained. 必须保留旧SVN存储库中的所有提交和日志。
What should I do? 我该怎么办? I'm using TortoiseGit and knows just a little about git commands.
我正在使用TortoiseGit,对git命令只了解一点。
Found a solution: just delete refs/remotes/git-svn
in the context menu. 找到了解决方案:只需在上下文菜单中删除
refs/remotes/git-svn
。
And then remove the folder .git/svn
. 然后删除文件夹
.git/svn
。
All histroy will be maintained. 所有的历史都会得到保留。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.