问题描述
我一直在开发iOS应用程序几个月。现在,我想把它推到bitBucket上。问题是git push忽略与cocoapods相关的所有文件(例如,project.xcworkspace Podfile,Podfile.lock,Pods等)。有什么办法可以推送这些文件?使用文本编辑器打开你的)注意:这是一个隐藏的文件)。它可能有如下行:
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/ Podfileor:
Pod*The line Pods/ is often added in some default .gitignore files found in various places around the net (example), and it tells git 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!