When you filter branch you don't need to commit, you get a new parallel
graph of revisions (the original is in refs/original).
The second attempt seems to have succeeded. The index filter method should
work too, I'm not sure why it didn't.

Note that to retain tags you should --tag-name-filter too.

I updated the instructions on the wiki.

2009/1/21 Alex Gusev <[email protected]>

>
> Hi :-)
>
> Today i tried
> http://github.com/guides/completely-remove-a-file-from-all-revisions
> to remove directory, but nothing happened ("WARNING: Ref 'refs/heads/
> master' is unchanged")
>
> Then i tried
>
> git filter-branch --tree-filter 'rm -rf vendor/plugins/liquid' HEAD
>
> and git told me "Ref 'refs/heads/master' was rewritten".
>
> But when i saild then "git commit -a" it answered:
>
> # On branch master
> # Your branch and 'origin/master' have diverged,
> # and have 33 and 33 different commit(s) each, respectively.
> #
> nothing to commit (working directory clean)
>
>
> What i did wrong?
>
> Thank you.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to