Re: git-show --stat on first commit
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Nov 21, 2006, 18:52 UTC
- Message-ID
- <20061121185259.GA22461@spearce.org>
- In-Reply-To
- <20061121184817.GE7201@pasky.or.cz>
Petr Baudis <pasky@suse.cz> wrote:
Show 9 quoted lines
> On Tue, Nov 21, 2006 at 07:39:56PM CET, Andy Parkins wrote: > > for file in $(git-ls-files); do git-update-index --force-remove $file; done > > > > Before creating the new files and "git-commit"ing. > > Ok, this approach looks actually reasonable (contrary to the frequently > suggested rm approach, which is rather dangerous). > > Perhaps git checkout --empty could do this?
Or perhaps just delete .git/index?
Any git-update-index --add or git-add command will immediately create an empty index. Indeed this is the initial state after git-init-db, since there is no HEAD to load into the index there is no index...