3

I have a pile of files that are in the physical location:

C:\VCProject\SVCodeCampWeb\WebAPI\ExtJsAppsSrc\CCApp23\resources\sass\.sass-cache\ec980567a9be72757a9921ebeae5bb3621e2b262\_IndexBar.scssc

my git root is at ExtJSAppSrc

I would expect that I could ignore all the files in the .sass-cache directory with the .gitignore line

CCApp23/resources/sass/.sass-cache*

but that does not seem to work.

Suggestions?

Peter Kellner
  • 14,748
  • 25
  • 102
  • 188
  • 2
    Shouldn't it be just `CApp23/resources/sass/.sass-cache/*`? – raina77ow Nov 07 '13 at 15:56
  • Even `CApp23/resources/sass/.sass-cache/` should suffice. – devnull Nov 07 '13 at 16:00
  • It might be that you are using / instead of \ , but I'm not sure. – lincb Nov 07 '13 at 16:00
  • 2
    possible duplicate of [Ignoring directories in Git repos on Windows](http://stackoverflow.com/questions/343646/ignoring-directories-in-git-repos-on-windows) – devnull Nov 07 '13 at 16:01
  • @devnull Yes, if the folder should be ignored as well. – raina77ow Nov 07 '13 at 16:02
  • check http://stackoverflow.com/questions/8527597/gitignore-file-syntax – Shivanshu Nov 07 '13 at 16:04
  • Git will ignore only **untracked** files, if you have added those files into repository, check [this](http://stackoverflow.com/questions/936249/removing-a-file-from-git-source-control-but-not-from-the-source/936290#936290) – dyng Nov 14 '13 at 01:50

1 Answers1

0

Add this to your gitignore:

/CCApp23/resources/sass/.sass-cache/

Or, to ignore the contents of all .sass-cache directories:

.sass-cache/
Nick McCurdy
  • 17,658
  • 5
  • 50
  • 82