0

We have cache folder in our project files. We are working as a team and use NetBeans 7.2 and Git as CVS .

cache folder has some sub-folder inside. we don't want this folder and its sub-folders get involved in push action.

How can we untrack cache folder and its sub-folders?

Chronial
  • 66,706
  • 14
  • 93
  • 99
hd.
  • 17,596
  • 46
  • 115
  • 165
  • http://stackoverflow.com/questions/936249/removing-a-file-from-git-source-control-but-not-from-the-source – ellotheth Dec 17 '12 at 20:41

2 Answers2

1

Simply add your cache folder to your .gitignore. Details on how to do that can be found here. You can commit your .gitignore to your repo, so the folder will also be ignored on all other machines.

Chronial
  • 66,706
  • 14
  • 93
  • 99
0

You could add the subdirectories to the toplevel .git/info/exclude or .gitignore, but I think all the users would need to do the same.

lynxlynxlynx
  • 1,371
  • 17
  • 26