Quantcast
Channel: Git push doesn't ignore files in .gitignore - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by atupal for Git push doesn't ignore files in .gitignore

$
0
0

If you have commited the file .You can cancel the lastest commit bu using:

git reset --soft HEAD^

And then:

git reset filename

And then add the file to .gitignore:

or:

git update-index --assume-unchanged  filename

Viewing all articles
Browse latest Browse all 5

Trending Articles



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