LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-26-2011, 03:45 AM   #1
guy_lux
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
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

Last edited by guy_lux; 01-26-2011 at 03:49 AM.
 
Old 01-26-2011, 07:04 PM   #2
fcintron
Member
 
Registered: Oct 2010
Location: México
Distribution: Centos
Posts: 71

Rep: Reputation: 4
¿when you clone your repo, this directory is created?

Regards
 
  


Reply

Tags
git


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't get access to client-side network from server-side network through openvpn nass Linux - Server 1 11-02-2009 04:41 AM
.gitignore missing jcfolke Linux - Newbie 0 07-23-2006 11:33 AM
How to set permissions for newly created dirs? z-vet Linux - General 2 12-04-2004 08:06 AM
xfs server ignoring font paths XPediTioN Mandriva 1 03-07-2004 05:11 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration