我如何解决git-svn错误'refs / remotes / git-svn $:命令返回错误:1'?


9

在Subversion版本库转换成的git的过程中,你可能会在转换遇到以下错误svn:ignore设置.gitignore

config --get svn-remote.svn.fetch :refs/remotes/git-svn$: command returned error: 1

如何解决此错误?

Answers:


11

要解决此错误,请指定GIT_SVN_ID要从中获取信息的引用名。喜欢:

git svn show-ignore -i trunk > .gitignore

1
git svn show-ignore -i origin/trunk > .gitignore如果上述方法不起作用,请尝试此操作。
Abdurrahman I.
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.