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

[bug-ish] [convenience] fatal: only [12] (reference)s? expected, [12] given

From
MVmana vortex <manavortex@gmail.com>
Date
May 30, 2018, 08:12 UTC
Message-ID
<1B7D3974-AA1C-42B5-A7F5-C5A36B28C34F@gmail.com>

Hello git folks, I’m writing about something that annoys me since forever: The reference handling is not consistent between commands. For example, I do

git checkout origin master
but I do
git reset —hard origin/master
I always get it wrong the first time.
Is there a convenience option that circumvents the error?

If one argument is given, but two are expected, split the argument at the first / and retry - throw error if that isn’t valid If two arguments are given, but one is expected, concat the arguments with a /.

Is that possible already, and if not, would you care to implement it?
Thank you for your time.
Next: Stefan Beller
Message 1 of 2 in “[bug-ish] [convenience] fatal: only [12] (reference)s? expected, [12] given”
  1. mana vortexMay 30, 2018
  2. Stefan BellerMay 30, 2018

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.