Home > Software engineering >  Pushing an existing Android project file to GitHub
Pushing an existing Android project file to GitHub

Time:11-05

I have an existing android project and tried adding it to the GitHub repo but it rejects stating the file is too large.

The project itself is quite small but I found that only 3 directories contributed the most size . The directories are present in the root directory of the project which is caches, daemon, wrapper constituting around 4Gb of size

enter image description here

What I tried :

---> adding the directories to .gitignore (seems to not work)

My Questions :

---> Can I delete the directories if they're not of any significance?

---> I added the directories to .gitignore by the following formats for example /caches/ and /caches and caches/ yet they stay unignored, am I doing this right?

I prefer not to go with Git LFS (Large file storage) since this is fairly a small project.

Thanks in advance :).

CodePudding user response:

Yes you can delete unnecessary folders.

For why the .gitignore does not work see here. Basically you started tracking the files before you add them to .gitignore (probably)

  • Related