我一直在用Git完成所有工作并推送到GitHub.我对软件和网站都非常满意,我不想在此时改变我的工作方式.
我的博士生顾问要求所有学生将他们的工作保存在大学托管的SVN存储库中.我已经找到大量关于将现有SVN存储库下载到Git中的文档和教程,但没有关于将Git存储库推送到新的SVN存储库.我希望必须有一些方法来实现这一点,结合使用git-svn和一个新的分支和变基和所有那些精彩的术语,但我是一个Git新手,并且对它们中的任何一个都没有信心.
然后我想在我选择时运行几个命令将提交推送到该SVN存储库.我希望继续使用Git,只是拥有SVN存储库镜像Git中的内容.
如果这有任何不同,我将是唯一一个承诺进入SVN的人.
上
git svn dcommit
Run Code Online (Sandbox Code Playgroud)
它开始提交然后我得到了这个
A spec/controllers/authenticated_system_spec.rb
A spec/controllers/sessions_controller_spec.rb
A spec/controllers/users_controller_spec.rb
A spec/fixtures/users.yml
A spec/helpers/users_helper_spec.rb
A spec/models/user_spec.rb
A vendor/plugins/haml/init.rb
A vendor/plugins/restful_authentication
7235d9150e8beb80a819923a4c871ef4069c6759 doesn't exist in the repository at /opt/local/libexec/git-core/git-svn line 4706
Failed to read object 7235d9150e8beb80a819923a4c871ef4069c6759 at /opt/local/libexec/git-core/git-svn line 570
Run Code Online (Sandbox Code Playgroud)
任何想法如何解决这个问题?
尝试检查git fsck --full但git repo和所有git命令似乎工作正常,不能dcommit.