public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Jan Kratochvil'" <jan.kratochvil@redhat.com>,
	"'Joel Brobecker'" <brobecker@adacore.com>
Cc: <archer@sourceware.org>
Subject: RE: Apologies for wrong commit error
Date: Sat, 19 Mar 2011 23:40:00 -0000	[thread overview]
Message-ID: <007101cbe68f$043bf0a0$0cb3d1e0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <20110319214549.GA4744@host1.jankratochvil.net>



> -----Message d'origine-----
> De : archer@sourceware.org [mailto:archer@sourceware.org] De la part de
> Jan Kratochvil
> Envoyé : samedi 19 mars 2011 22:46
> À : Pierre Muller
> Cc : archer@sourceware.org
> Objet : Re: Apologies for wrong commit error
> 
> Hi Pierre,
> 
> On Sat, 19 Mar 2011 22:34:58 +0100, Pierre Muller wrote:
> >  Could someone with enough git knowledge
> > check that the second did exactly cancel the first wrong commit?
> 
> It seems OK now to me.
> git diff
> cdf4dfaa567c4903b2fce0a16a2e5702e059932e..c40415cfe4d602ded27d296c77100
> 6609596d5f4
> shows no change.

  Thank you for the check,
I got strange results when I tried to do the same...
 
> >   Can an admin completely wipe my error out?
> 
> AFAIK it should not affect operations with master.  It is now more a
> problem
> for the archer-muller-windows-multi branch as AFAIK there is no way to
> do a
> real undo of a GIT merge.  GIT will now still think the current version
> of
> archer-muller-windows-multi is already present in master, therefore
> this
> command now no longer shows what has changed on archer-muller-windows-
> multi
> (even if master has more recent updates):
> 	git diff origin/master...origin/archer-muller-windows-multi

  This should be fixed now,
after I committed my last local version back to the git remote server.
At least, 
git diff origin/master...origin/archer-muller-windows-multi
seems to give back the local changes...

> From Joel:
>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 <SHA1>
>        % git push origin master
>
>This should restore the history to what it was prior to accidental
>commit.

  But this is what I was already unable to do on my own branch:
I got this warning about wiping out history 
and a suggestion about using 
  git push --force
but when I tried it out with --force option,
it did not work. It  seems to be a git remote configuration
option to disable the possibility of such pushes.


  Thanks to both of you,

Pierre
 

      parent reply	other threads:[~2011-03-19 23:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19 21:35 Pierre Muller
2011-03-19 21:46 ` Jan Kratochvil
2011-03-19 23:31   ` [Archer] " Joel Brobecker
2011-03-19 23:47     ` Pierre Muller
2011-03-20  4:48       ` [Archer] " Joel Brobecker
2011-03-20 12:40         ` Pierre Muller
2011-03-19 23:40   ` Pierre Muller [this message]

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='007101cbe68f$043bf0a0$0cb3d1e0$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --cc=archer@sourceware.org \
    --cc=brobecker@adacore.com \
    --cc=jan.kratochvil@redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).