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