From: Junio C Hamano Date: Sat, 17 Sep 2005 16:13:44 GMT Subject: Re: Newbie falls at first hurdle Message-ID: <7vek7nbrk7.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200509171309.46893.alan@chandlerfamily.org.uk> Alan Chandler writes: > So 'git-update-cache --add *' would seem to be the next step. > > However this fails with a message > > error: JavaSource: is a directory > fatal: Unable to add JavaSource to database; maybe you want to use --add > option? Sorry, that is not a very helpful error message. We do not track 'directories'. Only files and symlinks, which could live within subdirectories, and that's why you got that error message -- you told it to add a directory. You'd need something like this: $ find * ! -type d -print0 | xargs -0 git add