Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每次我使用这个命令:
git svn clone xxxx/xxx --prefix=svn/ --branches=branches --tags=refs/tags --stdlayout xxx
我收到此错误:
svn-remote.svn: remote ref 'xx' *:refs/remotes/svn/tags/*' (tags) must start with 'refs/'.
我怎样才能解决这个问题?
我知道这是一篇旧帖子,但我遇到了这个确切的问题。这对我有用:在第一步发出克隆命令后,编辑配置文件。
vi xxx/.git/config [svn-remote "svn"] url = svn://localhost/xxx/trunk fetch = :refs/remotes/git-svn
编辑 fetch 行以删除有问题的 '\Program Files\Git\Program Files\Git' 保存然后运行:
git svn fetch