Re: Cleaning the .git directory with gc
- From
- Haakon Riiser <haakon.riiser@fys.uio.no>
- Date
- Apr 24, 2008, 21:14 UTC
- Message-ID
- <20080424211458.GA8817@fox>
- In-Reply-To
- <20080424005013.GP29771@spearce.org>
[Shawn O. Pearce]
Show 9 quoted lines
> [...] > If you _really_ need to whack all of that away, make a clone > and then discard the old one, e.g.: > > git clone file://`pwd`/old_proj new_proj > > Note you need to use the file:// URI syntax to prevent Git from > just hardlinking everything. It takes a little longer, but the > resulting new_proj will be cruft free.
Thanks for answering my question so quickly. I really wasn't that worried about it, but seemed strange that the --amend option only seemed to affect the logs. Anyway, it's nice to know I can start with a clean slate if I want to by cloning from a file:// path.
-- Haakon