Xcode 源代码管理显示多个工作副本 [英] Xcode Source Control showing multiple Working Copies

查看:23
本文介绍了Xcode 源代码管理显示多个工作副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 显示多个工作副本:

Xcode is showing multiple working copies:

Working Copies
myProject - master
myProject_olderRepo
myProject_originalRepo

后两个是灰色的.

原始代码是从前任所有者的 repo 中克隆到 Sourcetree 中的.不知道如何将文件移动到新的存储库中,我只是在本地复制了整个项目目录,然后开始处理它们.然后我将重新设计的项目目录的内容复制到一个文件夹中,该文件夹链接到其他人可以访问的存储库.当他们克隆 repo 时,他们会收到编译错误,因为缺少模块(两个较旧的 repo).

The original code was cloned in Sourcetree from the repo of a previous owner. Not knowing how to move the files into a new repo, I simply copied locally the entire project directory, and started work on them. Then I copied the contents of that reworked project directory into a folder linked to a repo to which others have access. When they clone the repo they get compile errors because modules (the two older repos) are missing.

我几乎没有源代码控制和 Bitbucket 等方面的经验,所以对于我所做的任何完全愚蠢的事情,我谦虚地请求原谅.

I have almost no experience of source control and Bitbucket et al, so I humbly ask forgiveness for anything completely stupid that I am doing.

如何从 Xcode 的源代码管理中删除那些旧的工作副本?或者有没有其他方法可以让其他人克隆和编译项目而不会出错?

How do I remove those older working copies from Xcode's source control? Or is there some other way that others can then clone and compile the project without errors?

推荐答案

通过删除xccheckout下的文件解决

Solved this by deleting xccheckout file under

ProjectName.xcodeproj > project.xcworkspace > xcshareddata

这包含对先前存储库的引用.

This had contained references to the previous repos.

这篇关于Xcode 源代码管理显示多个工作副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆