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

Re: Undo last commit?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 30, 2011, 18:38 UTC
Message-ID
<20110630183830.GA4294@elie>
In-Reply-To
<BANLkTim459-Jx2R9GpBdkck7PMAEbamJeA@mail.gmail.com>
Ramkumar Ramachandra wrote:
> Mike writes:
>> I do think that git needs polishing in this way. It was designed by a
>> very intelligent programmer... however they can sometimes be the worst
>> at user interface design.
[...]
> Git is
> very complex, and changing one little thing requires us to think about
> how it'll affect everything else.

Oh, dear. No, I don't think these things are true at all (or at least I hope we act so as to make them not true). In its history, just like Jakub likes to remind us now and then, git _evolved_. To make it better, it should be sufficient to do three things:

 1. When there is a small, obvious change that can make something
    better, do it.
 2. When there is a small, obvious change that can make git simpler
    and more flexible (so other changes can become small and obvious),
    do it.
 3. When there is a big, possibly advantageous change, try it out
    locally (e.g., on a branch).  If it turns out to work well, use it.

While it is always nice to see people thinking carefully, none of the above necessarily requires thinking about all of git at once. In particular, (2) suggests that any feature leading a well informed person to say "Git is very complex" is a bug.

Previous: Ramkumar RamachandraNext: Mike
Message 11 of 16 in “Undo last commit?”
  1. MikeJun 18, 2011
  2. Ben WaltonJun 18, 2011
  3. Ramkumar RamachandraJun 18, 2011
  4. Jakub NarebskiJun 18, 2011
  5. Jonathan NiederJun 19, 2011
  6. Jakub NarebskiJun 19, 2011
  7. Massimo MancaJun 20, 2011
  8. Holger HellmuthJun 28, 2011
  9. MikeJun 28, 2011
  10. Ramkumar RamachandraJun 30, 2011
  11. Jonathan NiederJun 30, 2011
  12. MikeJun 30, 2011
  13. Junio C HamanoJun 30, 2011
  14. Neal KreitzingerFeb 11, 2012
  15. Jakub NarebskiFeb 11, 2012
  16. Jonathan NiederFeb 11, 2012

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.