gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 12:50:31 24 4
gpt4 key购买 nike

这是我第一次使用迦太基!我正在使用一个名为“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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com