Xcode认为远程svn回购是git [英] Xcode thinks a remote svn repos is git
问题描述
我在工作和家中运行Xcode 4.1。我已经成功地从远程svn仓库(工作)签出了一个项目,在我的家庭设置上。回购更新了,所以当我回到家时,我在本地结账时做了更新。
更新文件的状态被标记为U(良好)和出现了一个显示接受更改的页面,但是当我点击接受时,弹出窗口显示:
工作副本ABRA-D 没能拉。致命的:不是git仓库
(或任何父目录):.git
好的,是的...回购是svn,而不是git!关闭Xcode并重启将删除U标签,然后我又回到了开始的位置。听起来像Xcode的回购类型,虽然它知道足以查询svn回购并找出已更新什么是困惑的。任何人都知道一种治疗方法?
解决方案这个问题已经在错误:致命:不是git存储库(或任何父目录):.git ,有一个有点好奇的解决方案在这里描述:
最近,我创建了一个新项目,并在某个时候将其上传到SVN。我不太清楚如何重现这种情况,但不知何故Xcode 4的版本支持决定将该项目解释为git存储库。
每次我尝试复制一个文件时,拖放到我的项目中,我得到以下错误:
fatal:不是git仓库(或任何父目录):.git
结果是该文件被复制到项目文件夹中,但该参考未在项目中设置。我必须进入文件夹并再次拖放文件并取消复制选项,以便引用被设置。
解决方案
- 打开Xcode并转到
Window>组织者
- 在存储库下查找您的项目。这可能是两个条目,如果你使用类似SVN的东西。
- 确保它显示Type Git
- 标记存储库条目并点击退格或删除(在Mac上)
- 完成
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?
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.
Each time I tried to copy a file per drag and drop into my project I got following error:
fatal: Not a git repository (or any of the parent directories): .git
The result was that the file got copied into the project folder, but the reference didn't get set in the project. I had to go into the folder and drag and drop the file again and uncheck the copy option this time, so that the reference gets set.
The Solution
- Open Xcode and go to
Window > Organizer
- Find under repositories your project. It might be two entries if you use something like SVN.
- Make sure it says "Type Git"
- Mark the repository entry and hit backspace or delete (on mac)
- Done
这篇关于Xcode认为远程svn回购是git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!