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

rebase with unknown -s parameter discards commits

From
SSzunti <szunti@gmail.com>
Date
Aug 15, 2015, 00:01 UTC
Message-ID
<55CE814E.1050603@gmail.com>

git version: 2.5.0 Archlinux

Hi,

'git rebase -s nonsense master' gives an error message but still changes the branch.

$git rebase -s nonsense master topic First, rewinding head to replay your work on top of it... /usr/lib/git-core/git-rebase--merge: line 70: git-merge-nonsense: command not found Unknown exit code (127) from command: git-merge-nonsense 3cf5c040ccda670cc103184a6d7e03fc20293b81^ -- HEAD 3cf5c040ccda670cc103184a6d7e03fc20293b8

And topic is the same as master now.

If I try to continue $git rebase --continue Already applied: 0001 Topic All done.

But still topic is the same as master.

----------------------------------------------------- topic and master was created with these commands:

$git init $echo orig > text $git add text $git commit -m Orig

$git checkout -b topic $echo topic > text $git commit -am Topic

$git checkout master $echo master > text $git commit -am Master

$git rebase -s nonsense master topic $git rebase --continue

$git log --oneline 04d7f1d Master 0ac994c Orig

Message 1 of 1 in “rebase with unknown -s parameter discards commits”
  1. SzuntiAug 15, 2015

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.