{"thread":{"id":"16887","subject":"Fix commit message after push?","startedAt":"2008-12-27T21:13:46Z","lastAt":"2008-12-27T21:19:44Z","messageCount":2,"participants":["skillzero@gmail.com","Miklos Vajna"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"98804","messageId":"2729632a0812271313l74e9bb85l857a3ad3a3f0d8d8@mail.gmail.com","threadId":"16887","inReplyTo":null,"subject":"Fix commit message after push?","fromName":"","fromEmail":"skillzero@gmail.com","sentAt":"2008-12-27T21:13:46Z","receivedAt":"2008-12-27T21:13:46Z","isPatch":false,"sender":{"key":"skillzero@gmail.com","avatar":null},"body":"Is there a way to fix a commit message after the commit has already\npushed to someone else? I typed the wrong commit message then I pushed\nto the remote repository before realizing it. I tried git commit\n--amend to fix it in my local repository, but it rejects the\nsubsequent push. I somewhat understand why it's rejecting it (my\n--amend rewrote history and now they are out-of-sync), but I was\nwondering if there is a general way to handle situations like this\nwith git.\n"},{"id":"98808","messageId":"20081227211944.GZ21154@genesis.frugalware.org","threadId":"16887","inReplyTo":"2729632a0812271313l74e9bb85l857a3ad3a3f0d8d8@mail.gmail.com","subject":"Re: Fix commit message after push?","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2008-12-27T21:19:44Z","receivedAt":"2008-12-27T21:19:44Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Sat, Dec 27, 2008 at 01:13:46PM -0800, skillzero@gmail.com wrote:\n> Is there a way to fix a commit message after the commit has already\n> pushed to someone else? I typed the wrong commit message then I pushed\n> to the remote repository before realizing it. I tried git commit\n> --amend to fix it in my local repository, but it rejects the\n> subsequent push. I somewhat understand why it's rejecting it (my\n> --amend rewrote history and now they are out-of-sync), but I was\n> wondering if there is a general way to handle situations like this\n> with git.\n\ngit push -f\n\nhttp://git.or.cz/gitwiki/GitFaq#head-c1dc263aca199d347f28872249e6c1f5d519a2df\n"}]}