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

Re: "git checkout" safety feature

From
Matthias Urlichs <matthias@urlichs.de>
Date
Nov 5, 2018, 06:24 UTC
Message-ID
<fdedc47b-8661-9451-b4ef-12ec6bd13c04@urlichs.de>
In-Reply-To
<xmqqk1lsl448.fsf@gitster-ct.c.googlers.com>
Hi,
> "git checkout <commit> <pathspec>" is a feature to overwrite local
> changes.  It is what you use when you make a mess editing the files
> and want to go back to a known state.  Why should that feature be
> destroyed?

Not destroyed, but optionally made finger-fumble-save – like "alias rm rm -i".

-- 
-- Matthias Urlichs
Previous: Junio C HamanoNext: Jeff King
Message 3 of 5 in “"git checkout" safety feature”
  1. Matthias UrlichsNov 4, 2018
  2. Junio C HamanoNov 5, 2018
  3. Matthias UrlichsNov 5, 2018
  4. Jeff KingNov 5, 2018
  5. Duy NguyenNov 5, 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.