svn到git conversion没有共同的参考 [英] svn to git conversion no refs in common

查看:67
本文介绍了svn到git conversion没有共同的参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照 http:上的说明将svn存储库转换为git: //www.albin.net/git/convert-subversion-to-git .在遵循相同的说明之前,我已经完成了一次操作,并且可以正常工作,但是这次在"git push裸露"说明的第4步中,出现了以下错误.

I am trying to convert an svn repository to git following the instructions at http://www.albin.net/git/convert-subversion-to-git. I've done this once before following the same instructions, and it worked, but this time at step 4 in the instructions "git push bare" I get the following error.

No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '/Users/[ME]/new-bare.git'

是否要克服此错误?还是有更好的方法将svn转换为git?

Anyway to get past this error? or is there a better way to convert from svn to git?

推荐答案

我也尝试遵循该指南,它很复杂,对我不起作用. 我不知道为什么,我做的很简单: 1. git svn clone YOUR_SVN_REPOSITORY 2.在提交历史记录中手动修复作者(如何在git中更改提交的作者).

I've also tried to follow the guide, it's complex and didn't work for me. I've no idea why, what I did is simple: 1. git svn clone YOUR_SVN_REPOSITORY 2. Manually fix the author in commit history(How do I change the author of a commit in git).

这篇关于svn到git conversion没有共同的参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆