【问题标题】:Change Default Git Location of Xcode更改 Xcode 的默认 Git 位置
【发布时间】:2017-06-11 10:28:53
【问题描述】:

当我使用 Xcode 构建项目时,默认的 git 位置很好。我可以像往常一样通过 Xcode 启动源代码控制。但是当我从其他应用程序(例如 Projucer)构建会话时,我无法使用自定义 git 位置,因为它看不到所有文件。我需要在正确的位置手动创建第一个 git commit:

git init
git add . 
git commit -m "First Commit"

在这之后,Xcode 会看到 git repo 并且可以从那里起飞,之后我不必使用命令行。

我的问题是,有没有办法在 Xcode 中设置 git 的默认位置?回避命令?另外,有没有通过 Xcode gitignore 文件的可视化方法?谢谢。

【问题讨论】:

    标签: xcode git


    【解决方案1】:

    Setting up a git repository in XCode for a pre-existing project 所示,您仍然可以使用这些 Git 命令。

    "Git Create Project" of XCode 7 and 8 仍会在默认位置创建 .git (<root of the project>/.git)

    【讨论】:

      猜你喜欢
      • 2015-11-03
      • 2013-09-13
      • 2011-12-02
      • 1970-01-01
      • 2021-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多