我在工作和家里运行 Xcode 4.1。我已经在我的家庭设置中成功地从远程 svn 存储库(工作)签出了一个项目。存储库已更新,因此当我回到家时,我对本地结账进行了更新。
更新文件的状态被标记为“U”(良好),并且出现一个页面,显示要接受的更改,但是当我点击“接受”时,我会收到一个弹出窗口,其中显示:
工作副本“ABRA-D”拉取失败。致命:不是 git 存储库
(或任何父目录):.git
嗯,是的...存储库是 svn,而不是 git!关闭 Xcode 并重新启动会删除“U”标签,我又回到了开始的地方。听起来 Xcode 对存储库类型感到困惑,尽管它知道足以查询 svn 存储库并找出已更新的内容。有谁知道有什么治疗方法吗?
I'm running Xcode 4.1 at work and home. I've successfully checked out a project from a remote svn repository (work) on my home setup. The repos was updated, so when I got home, I did an update on the local checkout.
The status of the updated files got flagged "U" (good) and a page appeared showing changes to accept, but when I hit accept, I get a popup that says:
The working copy "ABRA-D" failed to pull. fatal: Not a git repository
(or any of the parent directories): .git
Well, yes... the repo is svn, not git! Closing Xcode and restarting removes the "U" tags and I'm back where I started. Sounds like Xcode is confused about the repo type, though it knew enough to query the svn repo and find out what had been updated. Anyone know a cure?
发布评论
评论(3)
该问题已在“此处描述:
最近我创建了一个新项目,在某个时候我将其上传到 SVN。我不太确定如何重现这种情况,但不知何故,Xcode 4 的版本控制支持决定将该项目解释为 git 存储库。
That issue, already mentioned in "Error : Fatal: Not a git repository (or any of the parent directories): .git", has a somewhat curious solution described here:
Recently I created a new project and at some point I uploaded it to SVN. I am not quite sure how to reproduce this situation but somehow the versioning support of Xcode 4 decided to interpret the project as a git repository.
就我而言,当我创建项目时,它使用的是 git。但后来我从我的 SVN 存储库中删除了所有 git 文件。然后更新了。
现在,当我尝试添加文件时,它给了我同样的错误。
解决方案:我在 XCode Organizer 中删除了针对我的项目的所有存储库。现在,当我添加新文件时,它工作正常。
In my case, when i created my project it was using git. But later i removed all git files from my SVN repository. Then took an update.
Now, when i tried to add files, it gives me same error.
Solution: I removed all repositories against my project in XCode Organizer. Now when i added new files, it works fine.
我对同一个项目有一个 git 和 svn ,并尝试删除 git 并收到此错误
最后,手动编辑了在 处找到的 xcshareddata 并删除了与 git 存储库有关的所有条目。
myproject.xcodeproj/project.xcworkspace/xcshareddata
I had a git and svn against the same project and tried removing the git and got this error
In the end went and manually edited xcshareddata found at and removed all the entries which had anything to do with the git repositoy.
myproject.xcodeproj/project.xcworkspace/xcshareddata