我正在使用Xcode 8和git作为源代码控制。我已经为这个项目做了一个git。我们如何删除未使用的工作副本,如下图所示
我想删除“SAM”工作副本以避免混淆。我们如何删除它?
已更新
我已经编辑了xcscmbluepine文件,但似乎未使用的仍然出现。
下面是我的xcmbluepride文件的内容(修改后)
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : 9223372036854775807
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "1A669691-0E1E-4D71-AD4F-5F0808376441",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : "eSAM\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "SAMKiosk",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "SAMKiosk.xcodeproj",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/victory1908\/SingPostESam.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671"
}
]
}
嗨更新了我原来的xcmbluepire(修改前)
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"CCEA429BB0CEB6873EA4927D131EA2335FDBC324" : 0,
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : 9223372036854775807
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "1A669691-0E1E-4D71-AD4F-5F0808376441",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"CCEA429BB0CEB6873EA4927D131EA2335FDBC324" : "SAM",
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : "eSAM\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "SAMKiosk",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "SAMKiosk.xcodeproj",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/victory1908\/SingPostESam.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/ZNO-INTL\/SAM.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "CCEA429BB0CEB6873EA4927D131EA2335FDBC324"
}
]
}
1条答案
按热度按时间rhfm7lfc1#
请参阅Xcode delete working copies of source control。
您必须先为方案选择shared,否则将无法找到
.xcshareddata
文件。请尝试按以下方式修改文件,然后重新启动: