Quantcast
Channel: Git push doesn't ignore files in .gitignore - Stack Overflow
Browsing latest articles
Browse All 5 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

Git 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

Browsing latest articles
Browse All 5 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>