Re: empty directories
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Aug 22, 2007, 00:06 UTC
- Message-ID
- <fafumf$fb4$1@sea.gmane.org>
- In-Reply-To
- <1187716461.5986.71.camel@beauty>
Josh England wrote:
Show 5 quoted lines
> Git doesn't seem to allow me to add an empty directory to the index, or > even nested empty directories. Is there any way to do this? What is > the reasoning? I've got a use case where having empty directories in my > git repository would be *very* valuable. Any information and help is > greatly appreciated.
Git does not track empty directories [yet], but you can use empty .gitignore file trick to mark "empty" directories to be added.
There were some discussion about this on git mailing list (see archives), and this issue is most probably mentioned on GitFaq page in git wiki.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git