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

What's the difference between 'git rebase -i HEAD~1' and 'git reset --soft HEAD^'

From
YYuri <yuri@rawbw.com>
Date
Dec 14, 2021, 23:01 UTC
Message-ID
<e584d004-334c-f9ed-39cb-77cba02cae1a@rawbw.com>

They both seem to perform the same function: undo the last commit and put all changes back as uncommitted.

But is there any difference between them?
Thanks,
Yuri
Message 1 of 1 in “What's the difference between 'git rebase -i HEAD~1' and 'git reset --soft HEAD^'”
  1. YuriDec 14, 2021

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.