Re: Rebasing commits that have been pushed to remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alright. I'll take this into account. Unfortunately, before you got to me, I reworded the commits on my local and pushed them to the remote, which resulted in a messy history with duplicate comments.

The project in question is a public project of mine, and I'm the only person actively working on it, so I guess rewinding and rebuilding is acceptable per my standards.

But at least my GitHub page has more green on it!

And I definitely will rebase -i and push -f next time I need to rewrite some remote history.
-----------------------------------------------------------------------

On 23/12/2021 3:34 am, Junio C Hamano wrote:
Lemuria <nekadek457@xxxxxxxxx> 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.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux