Re: How to "git add ." when some files are not accessible (permission denied)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano schrieb:
Dirk Süsserott <newsletter@xxxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux