chipbk10
chipbk10

Reputation: 5955

git push ignore cocoapods

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?

Upvotes: 2

Views: 3610

Answers (2)

Cœur
Cœur

Reputation: 38667

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

Upvotes: 1

chipbk10
chipbk10

Reputation: 5955

Using git add -A to add everything.

Upvotes: 0

Related Questions