Re: Rebasing commits that have been pushed to remote
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 22, 2021, 19:34 UTC
- Message-ID
- <xmqqlf0cjuwx.fsf@gitster.g>
- In-Reply-To
- <71b51bc8-172f-48de-7c3f-cf55dc45b39a@gmail.com>
Lemuria <nekadek457@gmail.com> writes:
> How do you reword messages of commits that have been pushed to remotes > (in this case GitHub)? Do I simply perform an interactive rebase > operation on the commits and simply push?
It is up to each project if it is an acceptable practice to rewind-and-rebuild a branch that has already been published, but if the projects participants are OK with it, then "'rebase -i' and 'push -f'" is how you would do it.