git-ignore.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
#
#
#
#
See the unwanted files:
git ls-files -ci --exclude-standard
#
Remove the unwanted files:
git ls-files -ci --exclude-standard -z |
xargs -0 git rm --cached
#
Commit changes
git commit -am " Removed unwanted files marked in .gitignore "
#
Push
git push origin master
#
or whatever branch you're on