botbotbot 's blog

Git ignore files in sub-directories

Example: ignore .css in only /src

# .gitignore

src/**/*.css

remove .css that committed in to repo

$ git rm -r --cached .
$ git add .
$ git commit

References: