From: Lemuria <nekadek457@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: Rebasing commits that have been pushed to remote
Date: Thu, 23 Dec 2021 11:11:32 +0800 [thread overview]
Message-ID: <d51b7981-5034-b34c-42d6-ad8b80a378c1@gmail.com> (raw)
In-Reply-To: <xmqqlf0cjuwx.fsf@gitster.g>
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@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.
>
next prev parent reply other threads:[~2021-12-23 3:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-22 7:55 Rebasing commits that have been pushed to remote Lemuria
2021-12-22 19:34 ` Junio C Hamano
2021-12-23 3:11 ` Lemuria [this message]
2021-12-26 8:44 ` Erik Cervin Edin
2021-12-26 9:58 ` Lemuria
2021-12-26 15:49 ` rsbecker
2021-12-27 2:28 ` Lemuria
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d51b7981-5034-b34c-42d6-ad8b80a378c1@gmail.com \
--to=nekadek457@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).