I have a large folder which is GB in size. The files inside it exceeds 100 MB. I did staged the folder, then commit. Then I executed:
git push origin master
But I got errors. From the errors I knew that particular folder can not be uploaded. I moved it outside my working directory.
Now I commit the directory again and again executed
push origin master
Git still complains about the large files although I have deleted them.
I checked the status using:
git status
I get this message:
On branch master
Your branch is ahead of 'origin/master' by 5 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
If I try tp push the changes to the origin master, I get the error about the large files. I am unable to remove them or untrack them.
My directory looks like this:
C:\Users\myuser\Documents\GitHub\myproject\data\largedirecor
The large directory is the problematic which I moved it outside my project directory. But this did not solve the issue.
How to push the changes without being chocked because of the large file? how to make git forget it.