From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20445 invoked by alias); 19 Mar 2011 23:47:16 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 20436 invoked by uid 22791); 19 Mar 2011 23:47:15 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org From: "Pierre Muller" To: "'Joel Brobecker'" , "'Jan Kratochvil'" Cc: References: <006b01cbe67d$7f308da0$7d91a8e0$@muller@ics-cnrs.unistra.fr> <20110319214549.GA4744@host1.jankratochvil.net> <20110319233114.GD2534@adacore.com> In-Reply-To: <20110319233114.GD2534@adacore.com> Subject: RE: [Archer] Re: Apologies for wrong commit error Date: Sat, 19 Mar 2011 23:47:00 -0000 Message-ID: <007401cbe68f$e7158490$b5408db0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2011-q1/txt/msg00133.txt.bz2 > You could undo the change by forcing the HEAD (reference) back to > the commit prior to the accidental one. I've never actually done > this before, but something like this, perhaps: > > % git reset --hard > % git push origin master > > This should restore the history to what it was prior to accidental > commit. As expected in my previous email, this is not possible: Pierre@E6510-Muller ~/git/archer $ git push --force origin master Total 0 (delta 0), reused 0 (delta 0) remote: error: denying non-fast-forward refs/heads/master (you should pull first ) To ssh://sourceware.org/git/archer.git ! [remote rejected] master -> master (non-fast-forward) error: failed to push some refs to 'ssh://sourceware.org/git/archer.git' Thus my error is written in stone forever :( Pierre