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