Answer by kevininhe for Git push doesn't ignore files in .gitignore
Another option, following @AD7six answer, is to create a new branch with no history, so you can push this branch to the remote server ignoring completely the large file.You can accomplish this by...
View ArticleAnswer by matrik for Git push doesn't ignore files in .gitignore
The solutions here will work but you will lose other changes in the same commit. If you don't want to lose the other changes in the same commit, and you didn't push the commit yet, you have to change...
View ArticleAnswer by AD7six for Git push doesn't ignore files in .gitignore
The files are still in your git history. From what's in the question the git history is for example:$ git log --onelineaaaaaaa Update .gitignore and remove big filesbbbbbbb accidentally add big files...
View ArticleAnswer by atupal for Git push doesn't ignore files in .gitignore
If you have commited the file .You can cancel the lastest commit bu using:git reset --soft HEAD^And then:git reset filenameAnd then add the file to .gitignore:or:git update-index --assume-unchanged...
View ArticleGit push doesn't ignore files in .gitignore
I committed some files that I shouldn't commit.Then I added these files in .gitignore and I did this:git rm -r --cached somefileand I committed again.git status shows: # On branch experimentnothing to...
View Article