git推动忽略cocoapods [英] git push ignore cocoapods

查看:603
本文介绍了git推动忽略cocoapods的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发iOS应用程序几个月。现在,我想把它推到bitBucket上。问题是git push忽略与cocoapods相关的所有文件(例如,project.xcworkspace Podfile,Podfile.lock,Pods等)。

有什么办法可以推送这些文件?使用文本编辑器打开你的 .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 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆