Re: Unable to remove a file
- From
- robert mena <robert.mena@gmail.com>
- Date
- Oct 4, 2011, 11:36 UTC
- Message-ID
- <CAAZ43xZo8cyE_ASz1Hc4yYoUjmH1OnVogOj6mtqFzmAUSBptFw@mail.gmail.com>
- In-Reply-To
- <CAEBDL5U4gU9C0De42Sgqv1ODLwQBuOdYdhfTBCMUziCZrhK9dA@mail.gmail.com>
Hi John,
I understand that. For the other that have cloned the repository in the past (no one has committed anything locally) is there any special procedure to be performed or a simply git fetch/pull will make their local repositories in sync?
2011/10/4 John Szakmeister <john@szakmeister.net>:
Show 20 quoted lines
> 2011/10/4 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>: > [snip] >>> git filter-branch --index-filter 'git rm -q --ignore-unmatch --cached >>> scripts/\\' HEAD >>> Rewrite 5ac83187fa298add60cf81fd1d54b194da7ae783 (57/57) >>> Ref 'refs/heads/master' was rewritten >>> git push >>> ! [rejected] master -> master (non-fast-forward) >>> error: failed to push some refs to 'git@myserver:repository' >>> >>> Should I do anything special? >> >> git push -f > > I assume you understand that you're rewriting history Robert, and that > has some consequences? You're master branch is now divergent, since > the commit ids changed. > > -John >