ios - 在 Bitbucket 存储库上推送具有多个项目的工作区

标签 ios xcode cocoapods bitbucket xcode-workspace

我有一个包含多个项目的 Xcode 工作区——主项目和一个 pod 项目。我如何将代码(第一次)推送到 Bitbucket 上,以便所有内容都设置在存储库中?附件是项目结构,只是为了说明

enter image description here

这是我的文件夹结构

enter image description here

最佳答案

您所要做的就是转到终端中的项目文件夹,然后按照相同的顺序执行以下命令。我假设您的主项目和 pod 项目都在同一个文件夹中

因此,在终端中进入您的第一个 AppIT 文件夹。如果您在该文件夹的终端中运行命令 ls -l,您将看到其中所有文件夹和文件的列表,如 AppIt、.xcodeProj 文件、Pod 文件夹、Podfile 等。只需运行以下命令您看到此列表的那个位置。

git init
git add -A .
git commit -m "first commit"
git remote add origin https://github.com/.... .git // your complete URL
git push -u origin master

关于ios - 在 Bitbucket 存储库上推送具有多个项目的工作区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45475651/

相关文章:

ios - 调试区域目标输出消息

iphone - 如何暂停/播放 NSTimer?

ios - 使用 UIPickerView 进行 UI 测试时出现 "Failed to get refreshed snapshot"错误

ios - 使用 Xcode 和 Cocoapods 进行代码签名

ios - 本地 Pod 的 header 搜索路径

ios - 'Cocoa Pod' 无法下载 'GoogleMobileAds' 的最新版本 (7.9.0)

iphone - XCode 中 iPhone 4 启动屏幕的尺寸 + 名称和图标

ios - 使用 Jenkins 和 altool 自动上传 IPA 失败,出现 'Transporter not found' 错误

ios - 当我返回 View Controller 时刷新 TableView 顶部的控件

iphone - 在 Xcode 中调暗 iPhone 5 手电筒应用程序的 LED