如何从 XCode 5 项目中删除 GIT 版本控制

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19236821/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:02:28  来源:igfitidea点击:

How to Remove GIT version control from XCode 5 Project

iosxcodegit

提问by Randy Mennie

Can anyone tell me how to completely remove GIT version control from an XCode 5 project?

谁能告诉我如何从 XCode 5 项目中完全删除 GIT 版本控制?

I decided to start using git when I upgraded to XCode 5, but then ran into the problem with excluding .xcuserstate in the .gitignore file. It would be successful, then the "User Interface State" message would come up while trying to commit everything else, and I couldn't get rid of it. There are lots of suggestions in here for terminal commands etc., but in the end I would get into a viscious circle.

我决定在升级到 XCode 5 时开始使用 git,但随后遇到了在 .gitignore 文件中排除 .xcuserstate 的问题。它会成功,然后在尝试提交其他所有内容时会出现“用户界面状态”消息,我无法摆脱它。这里有很多关于终端命令等的建议,但最终我会陷入一个恶性循环。

Having to go out of the IDE to run several terminal commands does not seem to me to be a well-integrated versioning system.

不得不离开 IDE 来运行几个终端命令在我看来并不是一个集成良好的版本控制系统。

I'm the only one working on this project so simply backing everything up on a regular basis is going to have to do.

我是唯一一个从事这个项目的人,所以只需要定期备份所有内容就行了。

Thanks

谢谢

回答by Kyle C

In Xcode 5

在 Xcode 5 中

  • Go To Xcode -- > Preference
  • Select "Source Control"
  • Deselect "Enable Source Control"
  • 转到 Xcode --> 首选项
  • 选择“源代码管理”
  • 取消选择“启用源代码控制”

Xcode 5 removed the Repositories Organizer

Xcode 5 移除了 Repositories Organizer