Re: How to "git add ." when some files are not accessible (permission denied)?
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Mar 2, 2008, 15:41 UTC
- Message-ID
- <20080302154154.GC2973@steel.home>
- In-Reply-To
- <47C95E34.1050306@dirk.my1.cc>
Dirk Süsserott, Sat, Mar 01, 2008 14:46:28 +0100:
> Or, more generally spoken: can I tell "git add" to add only those files it > can handle and ignore the rest? The "-f" switch doesn't work and some > exclude lists on a per file basis are not applicable for my purpose as I > don't know the files in advance.
Well, "-f" means something else (include the ignored files). It is unfortunate, because (I think) your case fits better its traditional meaning...
You can try the following patches, which add "--ignore-errors" to git-add. Maybe it will be enough... It is generally considered not safe to ignore errors.