From: Boaz Harrosh Date: Thu, 22 Jan 2009 10:19:41 GMT Subject: Re: how to git a read only directory Message-ID: <4978483D.6040105@panasas.com> In-Reply-To: <20090122100008.GC6936@b2j> bill lam wrote: > On Wed, 21 Jan 2009, Boaz Harrosh wrote: >> [~] $ mkdir gitrepo; cd gitrepo >> [gitrepo] $ git-init >> [gitrepo] $ ln -s /etc >> [gitrepo] $ git-add /etc/fstab > Sorry My mistake, it should be: [gitrepo] $ git-add etc/fstab > (I use git ver. 1.6.1, git-xxx is already deprecated) > I followed your example, and failed in the git add, > > gitrepo$ git add /etc/fstab > fatal: '/etc/fstab' is outside repository > Sorry it's a typo, sure you must add files relative to the base directory (one containing the .git/ dir) Cheers Boaz