On 8/6/16 8:29 PM, Michael Osipov wrote:
Am 2016-08-06 um 20:24 schrieb Karl Heinz Marbaise:
Hi Michael,

On 8/6/16 8:20 PM, Michael Osipov wrote:
Am 2016-08-06 um 20:01 schrieb Karl Heinz Marbaise:
Hi Michael,

On 8/6/16 7:46 PM, Michael Osipov wrote:
Am 2016-08-06 um 19:38 schrieb Karl Heinz Marbaise:
Hi,

I have accidently committed a change in Git with a log message which
contains wrongly encoded characters...

What is the best to handle this?

git commit --amend ..

and

git push -f

The ASF server will probably block history rewrite.


It works...So I have fixed the wrong encoding log message..

You were lucky because no one pulled yet from and if someone did and
pushed again, that would be a pain.
I know about the risks I took...;-(...

But would be the "better" way to fix such issue ?  Do you know a better
one?

From the top of my head, I would create an empty commit with a fixed
message refencing the SHA1 which was fixed.

But doesn't this kept the commit with the wrong encoded message or do i misunderstand a thing ?


Kind regards
Karl Heinz

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to