LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gitignore not ignoring server side created dirs (http://www.linuxquestions.org/questions/linux-software-2/gitignore-not-ignoring-server-side-created-dirs-858714/)

guy_lux 01-26-2011 03:45 AM

Gitignore not ignoring server side created dirs
 
Hi,

I've got a Web app on a server, that may dynamically create some directories inside "/public/sites/medias" from the inside of the app.
I've got no problem so far to tell Git to ignore everything _actually_ in "public/sites/medias", but the problem is when users begin to create new dirs and add files like these :

/public/sites/medias
---------------------/images
---------------------------/4
-----------------------------/my_pic.jpg

I can't understand why the hell does Git always want to track them and then say "/public/sites/medias/images/4/my_pic.jpg needs update" when I pull a new version of the app.

Here is my actual .gitignore :

public/sites/
config/**
!config/routes.rb
db/*.sql*
log/*.log
tmp/*
*.swp

How can I tell Git to _never_ever_ look inside "/public/sites" no more and totally forget about what could ever happen inside this directory ?

Any help highly appreciated, thanks

fcintron 01-26-2011 07:04 PM

¿when you clone your repo, this directory is created?

Regards


All times are GMT -5. The time now is 03:16 PM.