HichamEch
HichamEch

Reputation: 715

How to ignore all .sass-cache folders in my project via .gitignore

id like to igone all .sass-cache (sass cach folder) via .gitignore file in a single line

looking for line like :

/**/*/.sass-cache

its possible ?

Upvotes: 2

Views: 1500

Answers (1)

Vampire
Vampire

Reputation: 38714

Sure:

.sass-cache/

should be enough to exclude all files within directories called .sass-cache in the whole subtree where the .gitignore is present.

But be aware that git ignore feature only works on untracked files. If you have already files in those folders tracked, you have to delete them from the repository, e. g. with git rm --cached ... and a commit.

Upvotes: 6

Related Questions