git/list[1] front-page[2] threads[3] people[4] search[5] about
 

revert top most commit

From
Keller, Jacob E <jacob.e.keller@intel.com>
Date
Aug 27, 2014, 21:14 UTC
Message-ID
<1409174048.2715.12.camel@jekeller-desk1.amr.corp.intel.com>
Hi,
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.

Is there anything specific about git revert that prevents it from reverting the most recent commit?

Thanks, Jake

Next: David Turner
Message 1 of 6 in “revert top most commit”
  1. Keller, Jacob EAug 27, 2014
  2. David TurnerAug 27, 2014
  3. Keller, Jacob EAug 27, 2014
  4. Jonathan NiederAug 28, 2014
  5. Keller, Jacob EAug 28, 2014
  6. Keller, Jacob EAug 28, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.