git - 使用迦太基时要提交什么?

标签 git carthage

这是我第一次使用迦太基!我正在使用一个名为“https://github.com/LeoNatan/LNPopupController”的库,我让它在我的项目中工作。问题是我想提交这些更改,但是当我这样做时,我收到一个 pop 窗口,提示某个文件大于 10MB!

问题又来了,使用 Carthage 时你应该提交什么,不提交什么?

此类文件的图片:

enter image description here

在源代码树上:

enter image description here

最佳答案

Carthage/Carthage issue 393涵盖了这一点。

指的是github/gitignore/Swift.gitignore作为一个可能的例子:

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts/

Carthage/Build/

这留下了 CartfileCartfile.privateCartfile.resolved 待提交。

但是:请引用 Carthage Artifacts page :

对于 Checkouts 文件夹:

You are not required to commit this folder to your repository, but you may wish to, if you want to guarantee that the built versions of each dependency will always be accessible at a later date.

所以在你的情况下,将 Carthage/Checkouts/ 添加到你的 .gitignore 会更简单。
然后 SourceTree 将不会将所有这些文件列为未暂存。

关于git - 使用迦太基时要提交什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47947272/

相关文章:

git - VS Code Git 干净恢复

git branch 列出上游的分支

git - 强制覆盖 TortoiseGit 推送对话中缺少的现有分支

swift - 运行脚本阶段错误 : framework is a directory

xcode - 通过 Carthage 添加 MailCore2 并支持 Xcode

ios - Carthage:如何获取给定存储库的最新版本?

git - git diff发布标记和commitID

git - 在 Git 的根提交之前插入一个 NON-EMPTY 提交?

iOS Carthage "project has no shared schemes"即使使用手动 xcodebuild

ios - 迦太基更新 - 任务失败,退出代码 65