git推动忽略cocoapods [英] git push ignore cocoapods
问题描述
有什么办法可以推送这些文件?使用文本编辑器打开你的 .gitignore
文件()注意:这是一个隐藏的文件)。它可能有如下行:
Pods /
Podfile
或:
Pod *
Pods / 通常会在一些默认的<$ (示例)中找到的c $ c> .gitignore 文件,以及它告诉
git
不推送CocoaPods依赖项。
好的,解决方法是删除或注释掉这些行评论是在
.gitignore
)中使用#
字符完成的。I have been developing an iOS application for a few months. Now, I want to push it on bitBucket. The problem is git push ignore all files related to cocoapods (e.g., project.xcworkspace Podfile, Podfile.lock, Pods, etc.)
Is there any way to push these files?
解决方案Open your
.gitignore
file with a text editor (note: it's a hidden file). It's likely that it has lines like:Pods/ Podfile
or:
Pod*
The line
Pods/
is often added in some default.gitignore
files found in various places around the net (example), and it tellsgit
to not push CocoaPods dependencies.Well, the solution is to remove or comment out those lines (comments are done with a
#
character in your.gitignore
).这篇关于git推动忽略cocoapods的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!