简体   繁体   English

Git SVN-没有更改,没有分支(主服务器除外),rebase / info无法正常工作

[英]Git svn - no changes, no branches (except master), rebase/info is not working

I know that similar questions were asked before, but I think my is a little bit different, so please don't point me to existing threads. 我知道之前曾问过类似的问题,但我认为我有点不同,所以请不要将我指向现有的线程。

I'm migrating our old svn repo to git. 我正在将旧的svn存储库迁移到git。

I did 我做了

git svn clone path --authors-file abc.txt --no-metadata

and everything seemend legit to me. 一切似乎都对我合法。 Then I did 然后我做了

git remote add origin xyz

and

git push --all origin

and it also worked. 而且它也起作用。

I created this repo as test one, with only me having access to both local repo and origin . 我创建了此存储库作为测试库,只有我可以访问本地存储库和origin No changes were made in project held on this repo, nothing to commit, no pushing and so on. 没有对该仓库执行的项目进行任何更改,无需提交任何内容,也无需进行推送等。 There is also only one branch, because someone initialized svn years ago without creating proper folder structure (branches, trunk, tags). 也只有一个分支,因为有人在svn年前初始化而未创建正确的文件夹结构(分支,主干,标签)。 Meanwhile someone pushed their work to svn , so I tried to git svn fetch (which worked), and git svn rebase which didn't, giving me error: 同时有人将他们的工作推送到svn ,所以我尝试git svn fetch (有效)和git svn rebase无效,给我错误:

Unable to determine upstream SVN information from working tree history

Is there any reason why git svn decided to stop working? 为什么git svn决定停止工作?

似乎没有--no-metadatasvn重新导入存储库就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM