From: Johannes Sixt <j.sixt@viscovery.net>
To: Markus Korber <korbse@gmx.at>
Cc: git@vger.kernel.org
Subject: Re: Revert git push
Date: Thu, 10 Jan 2008 15:12:50 +0100 [thread overview]
Message-ID: <478627E2.4060808@viscovery.net> (raw)
In-Reply-To: <6zve61q0t3.fsf@odpc25.int.ondemand.co.at>
Markus Korber schrieb:
> Hi,
>
> I've got two local git repositories, linux and mplayer, where I push to
> from a local directory. Now I accidentally pushed from mplayer into the
> linux repository (via a not updated URL[1]). Is it somehow possible to
> revert this push if nobody has pushed something since my last pull from
> the linux repository?
Sure.
$ cd /the/linux/repo
$ git checkout 94545baded
$ git branch -f master 94545baded
$ git checkout master
Omit the two checkouts if the repo is bare or if it did not have 'master'
checked out.
-- Hannes
next prev parent reply other threads:[~2008-01-10 14:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-10 13:15 Revert git push Markus Korber
2008-01-10 13:31 ` Jonathan del Strother
2008-01-10 13:45 ` Markus Korber
2008-01-10 14:12 ` Johannes Sixt [this message]
2008-01-14 10:39 ` Markus Korber
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=478627E2.4060808@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=korbse@gmx.at \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.