简体   繁体   English

致命:无效的对象名称:“ refs / remotes / trunk”

[英]fatal: Not a valid object name: 'refs/remotes/trunk'

After using git svn with clone and fetches I end with a local git repository that looks as follows. git svn与clone和访git svn一起使用后,我以一个本地git存储库结尾,该存储库如下所示。 Note that I have made a first push to my Git server Atlassian's Stash but as result I only have in-sync with the git server the master branch: 请注意,我已首先推送到Git服务器Atlassian的Stash,但结果是我只与git服务器master分支同步:

c:\myproject>git branch -a
* master
  remotes/origin/1335-branch
  remotes/origin/master
  remotes/origin/tags/0.1
  remotes/origin/trunk

Following direction from Migrating from SVN to Git ... and trying to convert the remote svn branches to local Git branches I do: 遵循从SVN迁移到Git的指示,并尝试将远程svn分支转换为本地Git分支,我这样做:

c:\myproject>git branch origin/trunk refs/remotes/trunk
fatal: Not a valid object name: 'refs/remotes/trunk'.

and then I get the OP error fatal: Not a valid object name: 'refs/remotes/trunk' and I can't see why it happens 然后我得到fatal: Not a valid object name: 'refs/remotes/trunk'的OP错误fatal: Not a valid object name: 'refs/remotes/trunk' ,但我看不到为什么发生

Your tutorial is probably made with a different version of git-svn . 您的教程可能是使用其他版本的git-svn Formerly the --prefix was empty by default, in newer versions it is origin/ by default. 以前--prefix默认情况下为空,在较新版本中,默认情况下为origin/ Because of that you have now refs/remotes/origin/trunk and so on instead of refs/remotes/trunk . 因此,您现在有了refs/remotes/origin/trunk等,而不是refs/remotes/trunk

暂无
暂无

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

相关问题 Git-svn克隆错误:“致命:不是有效的对象名称'refs / remotes / tags / Tag With Spaces'” - Git-svn clone error: “fatal: Not a valid object name 'refs/remotes/tags/Tag With Spaces'” 致命:refspec的远程部分不是.git / refs / heads / master中的有效名称:.git / refs / remotes / origin / master - fatal: remote part of refspec is not a valid name in .git/refs/heads/master:.git/refs/remotes/origin/master git tag:致命:无法将'refs / remotes / my_tag_name'解析为有效的ref - git tag: fatal: Failed to resolve 'refs/remotes/my_tag_name' as a valid ref git gc-致命:错误的对象引用/远程处理/图标 - git gc - fatal: bad object refs/remotes/Icon Git refs / remotes / origin / master不指向有效对象 - Git refs/remotes/origin/master does not point to a valid object 带有 repo init 命令的错误“致命:refs/remotes/origin/stable^0: not a valid SHA1” - error "fatal: refs/remotes/origin/stable^0: not a valid SHA1" with repo init command 如何处理 git gc fatal: bad object refs/remotes/origin/HEAD 错误? - How to handle git gc fatal: bad object refs/remotes/origin/HEAD error? git gc 致命错误坏 object refs/remotes/origin/deleted/deleted.002 - git gc fatal error bad object refs/remotes/origin/deleted/deleted.002 致命:不是有效的 object 名称:'master' - fatal: Not a valid object name: 'master' Git:内部错误:refs / remotes / origin / master不是有效的打包引用 - Git: Internal error: refs/remotes/origin/master is not a valid packed reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM