Re: How to "git add ." when some files are not accessible (permission denied)?
- From
- Dirk Süsserott <newsletter@dirk.my1.cc>
- Date
- Mar 3, 2008, 20:32 UTC
- Message-ID
- <47CC6051.1090308@dirk.my1.cc>
- In-Reply-To
- <7vmypfh8s4.fsf@gitster.siamese.dyndns.org>
Junio C Hamano schrieb:
Show 14 quoted lines
> Dirk Süsserott <newsletter@dirk.my1.cc> 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.