Reputation: 19869
I am trying to push a project to github.
I have a file that is larger than github size limit (500 MB), so I ignored it in .gitignore
file.
The problem is that git is trying to upload this file to the repository and the upload fails.
I tried to add
the file, and git indeed warns me that this file is ignored in .gitignore
, but still it tries to upload it any time I am trying to push.
Any Idea ?
Upvotes: 0
Views: 782
Reputation: 14599
It doesn't matter if your file is gitignored or not: if it has been added in a commit, git will try to push it. Even if you removed this file afterwards.
A solution would be to remove the commits which contains this file. You could for example:
It will likely change your history, so you'd better make sure you know what you're doing. However, since you're saying you couldn't push, it should be rather safe.
Upvotes: 1