0
I have the following situation:
I created a repository git
from a remote of the Github.
I did several commits
in the local repository (without push
to the remote).
When I went to perform push
for the remote, it was rejected because it has files larger than 50MB.
So I changed the .gitignore
to ignore files larger than 50MB (I don’t need them in the remote repository).
I made a new commit
with the change in .gitignore
.
Even so, the rejection of large files still occurs (>50MB).
I found some answers that talk about reset
but I’m afraid to do it, because I can’t lose the job already done.
How do I "update" the commits
to consider the amendment of .gitignore
which deletes the large files and send the push
to the repository?
Thank you @Igor Cavalcanti, but I had already tried this solution and it didn’t work. Anyway, last night I spent some more time researching the Github documentation and found something that worked.
– Everton da Rosa