On Wed, Jul 16, 2014 at 09:34:32AM +0200, Magnus Therning wrote:
> On Wed, Jul 16, 2014 at 12:11:49AM -0700, cemico wrote:
> > 2. We did this:
> > 
> > git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch 
> > DIRECTORY/' --prune-empty --tag-name-filter cat -- --all
> > 
> > and afterwards:
> > 
> > rm -rf .git/refs/original/ && git reflog expire --all &&  git gc 
> > --aggressive --prune
> > 
> > That did not help, so we tried:
> > http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
> > http://rtyley.github.io/bfg-repo-cleaner/
> > http://git-scm.com/book/en/Git-Tools-Rewriting-History#The-Nuclear-Option:-filter-branch
> > 
> > with no effort
> 
> I've done exactly that sort of thing in the past, using the
> same sources for information, so what is it that does happen when
> running the command above?  Does `git filter-branch` complete
> successfully?

It's also worth having a look at `--tree-filter`, it's slower than
`--index-filter` but I find it easier to work with.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

Goto labels should be left-aligned in all caps and should include the
programmer's name, home phone number, and credit card number.
     -- Abdul Nizar

Attachment: pgpLRWTK6AEei.pgp
Description: PGP signature

Reply via email to