git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: "Keller, Jacob E" <jacob.e.keller@intel.com>
Cc: "dturner@twopensource.com" <dturner@twopensource.com>,
	"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: revert top most commit
Date: Wed, 27 Aug 2014 17:22:43 -0700	[thread overview]
Message-ID: <20140828002243.GA20185@google.com> (raw)
In-Reply-To: <1409179401.2715.17.camel@jekeller-desk1.amr.corp.intel.com>

Keller, Jacob E wrote:
>> On Wed, 2014-08-27 at 21:14 +0000, Keller, Jacob E wrote:

>>> I am having trouble using revert. If I attempt to
>>>
>>> $ git revert <sha1id>
>>>
>>> where sha1id is the same as the HEAD commit, I instead get the output of
>>> what looks like git status.
[...]
> It's actually not my repository, I was helping a co-worker, and thought
> I'd ask if anyone here knew if it was expected behavior or not.

More details about the output would help --- otherwise people have to
guess[*].  I'm guessing your co-worker's working tree is not clean.
Commiting or stashing their changes first might get things working.

Hope that helps,
Jonathan

[*] Another nice thing about quoting output is that it becomes more
obvious what about it wasn't helpful, which sometimes leads to patches
from kind people on the list to fix it.

  reply	other threads:[~2014-08-28  0:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-27 21:14 revert top most commit Keller, Jacob E
2014-08-27 22:15 ` David Turner
2014-08-27 22:43   ` Keller, Jacob E
2014-08-28  0:22     ` Jonathan Nieder [this message]
2014-08-28 20:21       ` Keller, Jacob E
2014-08-28 20:27       ` Keller, Jacob E

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=20140828002243.GA20185@google.com \
    --to=jrnieder@gmail.com \
    --cc=dturner@twopensource.com \
    --cc=git@vger.kernel.org \
    --cc=jacob.e.keller@intel.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 NNTP newsgroup(s).