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

(no subject)

From
FWFrançois WAUQUIER <wokier@gmail.com>
Date
Jan 3, 2020, 12:40 UTC
Message-ID
<CAFS-fjvhAB5EcfHhfp6HYN57W11tkHOc8K8T3oey8qceutuYsg@mail.gmail.com>
Hi
$ git checkout -

I often use this command to go back to previous branch from my history. It is quite natural as it uses the same syntax as “cd -“

But i found out it is not documented in https://git-scm.com/docs/git-checkout/2.24.0 I report this to help others to discover this time saving command.

Thanks for the great work with git Happy new year

-- 
François Wauquier
Next: Jonathan Nieder
Message 1 of 3 in “”
  1. François WAUQUIERJan 3, 2020
  2. Jonathan NiederJan 4, 2020
  3. Todd ZullingerJan 4, 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.