git push ignore cocoapods

筅森魡賤 提交于 2019-12-12 18:01:33

问题


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?


回答1:


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 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).




回答2:


Using git add -A to add everything.



来源:https://stackoverflow.com/questions/25787733/git-push-ignore-cocoapods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!