使用迦太基时要做什么?

问题描述 投票:5回答:1

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

问题是,在使用迦太基时,你认为提交和不提交是什么?

这样的文件的图片:

enter image description here

在源树上:

enter image description here

git carthage
1个回答
9
投票

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文件夹:

您不需要将此文件夹提交到您的存储库,但您可能希望,如果您想保证每个依赖项的构建版本将始终可以访问。

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

© www.soinside.com 2019 - 2024. All rights reserved.