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

git switch -c message improvement suggestion

From
EAEd Avis <ed.avis@qmaw.com>
Date
Jul 3, 2020, 08:30 UTC
Message-ID
<BL0PR11MB346072F896E88001502324C69D6A0@BL0PR11MB3460.namprd11.prod.outlook.com>
I think that git switch -c could tell you not only that you already created the branch, but you already switched to it!

% git switch -c branch1 % git switch -c branch1 fatal: A branch named 'branch1' already exists, and you are already on it

-- 
Ed Avis <ed.avis@qmaw.com>
Message 1 of 1 in “git switch -c message improvement suggestion”
  1. Ed AvisJul 3, 2020

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.