From: Dirk Süsserott Date: Mon, 03 Mar 2008 20:32:17 GMT Subject: Re: How to "git add ." when some files are not accessible (permission denied)? Message-ID: <47CC6051.1090308@dirk.my1.cc> In-Reply-To: <7vmypfh8s4.fsf@gitster.siamese.dyndns.org> Junio C Hamano schrieb: > Dirk Süsserott writes: > > >> This way prepared, I used "git ls-files -o | xargs git add -v" until >> most of my files were added. >> ... >> Caveat: filenames containing blanks are not handled properly as they >> are not surrounded by quotes. "git add" thinks of them as two or more >> files and fails. >> > > Perhaps "git ls-files -z -o | git update-index --add --stdin" > > That's exactly what I meant when I wrote "Git almost always has a solution for 'do what I mean'". It is, however, sometimes hard to find, but the solution is always there. Its such a great piece of software. Congratulations to you all.