tags:

views:

46

answers:

1

I know that's rewriting of history which is bad yada yada.

But - how to do that?

+1  A: 

You 'git reset' your local branch, and you git push --force your revised local branch to the remote. (other solution here, involving deleting the remote branch, and re-pushing it)

This SO answer illustrates the danger of such a command, especially if people depends on the remote history for their own local repos.
You need to be prepared to point out people to the RECOVERING FROM UPSTREAM REBASE section of the git rebase man page

VonC
Strange. Feels like i tried that already. Together with some rebasing - works like a charm. Thanks.
Arnis L.
I'm warned already. But it's not the case here. I'm alone. :)
Arnis L.
@Arnis: perfect then ;) `push --force` away
VonC