-1

I recently made an iOS application in Xcode that uses the OpenCV framework. I would like to push this repository onto my Github page, but the framework contains files that are too large. Is there any way to remove that framework from the repository so that I can push it?

Kendel
  • 1,698
  • 2
  • 17
  • 33
  • Wait: You added external libraries ("framework") to your sources? That would be a nono in and of itself. What files are so huge that Github rejects them? – Ulrich Eckhardt Jan 08 '18 at 21:56
  • @UlrichEckhardt Thank you for pointing that out. Just realized that the framework was in my source. Problem solved. – Kendel Jan 08 '18 at 22:29

3 Answers3

0

You probably don't want to check in framework code into your project.

Use a .gitignore file to specify directories that shouldn't be committed.

If you've already committed those files, you will have to rewrite history to reduce your repo size. It may be worth starting from a new history if not much work has been done.

Rick Sullivan
  • 178
  • 1
  • 7
0

You're gonna want to filter (whether by directory or file type) it out using git ignore.

See this answer if you need to remove files that were already committed.

Yuli Bonner
  • 1,189
  • 8
  • 12
0

I removed the framework from my source and added it to the frameworks folder. I then removed the framework from my initial commits, recommitted, and pushed.

Kendel
  • 1,698
  • 2
  • 17
  • 33