这是我第一次使用迦太基!我正在使用一个名为“https://github.com/LeoNatan/LNPopupController”的库,我让它在我的项目中工作。问题是我想提交这些更改,但是当我这样做时,我收到一个 pop 窗口,提示某个文件大于 10MB!
问题又来了,使用 Carthage 时你应该提交什么,不提交什么?
此类文件的图片:
在源代码树上:
最佳答案
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/
这留下了 Cartfile
、Cartfile.private
和 Cartfile.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/