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

New checkout --track behaviour?

From
FOFrancesco Occhipinti <francesco.occhipinti@tracsis.com>
Date
Dec 12, 2024, 10:29 UTC
Message-ID
<DB9PR08MB71949D21F5F0E81911F0D50F903F2@DB9PR08MB7194.eurprd08.prod.outlook.com>
In-Reply-To
<DB9PR08MB7194822B81F17420B2D3C149903F2@DB9PR08MB7194.eurprd08.prod.outlook.com>
Hello,

Did the interface change in recent git versions? I am pretty sure i used to git checkout -tb new_branch, now getting error: option `--track' expects "direct" or "inherit".

User `geirha` on libera#git helped me troubleshooting. They noticed that:
- git help checkout differs in its description of --track between
  2.34.1 (ubuntu 22.04) and 2.43.0 (ubuntu 24.04), so looks like it
  did change recently
- according to the commit message at
  https://github.com/git/git/commit/6327f0efed36c64d98a140110171362b7cb75a52,
  -t is supposed to be equivalent to --track=direct, so likely a bug
  rather than intentional change

I did read all options in `man git config` looking for something related. Found only branch.autoSetupMerge, but neither setting it to `always` nor `inherit` helped

Cheers, fran

Next: brian m. carlson
Message 1 of 4 in “New checkout --track behaviour?”
  1. Francesco OcchipintiDec 12, 2024
  2. brian m. carlsonDec 13, 2024
  3. Junio C HamanoDec 13, 2024
  4. Francesco OcchipintiDec 13, 2024

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.