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

Re: [RFC/PATCH 0/2] Documentation: kicking the "reset --hard" habit

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Oct 30, 2010, 01:55 UTC
Message-ID
<vpqzktwv3yx.fsf@bauges.imag.fr>
In-Reply-To
<20101029083516.GA26290@burratino>
Jonathan Nieder <jrnieder@gmail.com> writes:
> Sadly, at least the user manual change suggested below is probably
> not suitable, since reset --keep and --merge have not been around
> since git 1.5.3 days.  Ideas for working around that and other
> comments would be welcome.

Do we really want to keep the user manual compatible with 1.5.3 forever? It's nice to keep the user manual usable by slightly outdated Gits, but 1.5.3 starts being really old, and older docs are still available on the web (like http://www.kernel.org/pub/software/scm/git/docs/v1.5.3.8/git.html ).

git reset --merge appeared in Git 1.6.2, it sounds reasonable to say the current user manual works from this version.

git reset --keep appeared in 1.7.1, hence far more recently. But I think it can still be mentionned at least as an alternative to --hard.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Jonathan NiederNext: Junio C Hamano
Message 5 of 10 in “Documentation: kicking the "reset --hard" habit”
  1. 0/2 Documentation: kicking the "reset --hard" habitJonathan Nieder, Oct 29, 2010
  2. 1/2 Documentation: suggest "reset --merge" more oftenJonathan Nieder, Oct 29, 2010
  3. Stephen BoydNov 3, 2010
  4. 2/2 Documentation: suggest "reset --keep" more oftenJonathan Nieder, Oct 29, 2010
  5. Matthieu MoyOct 30, 2010
  6. Junio C HamanoOct 31, 2010
  7. Matthieu MoyOct 31, 2010
  8. Oldest Currently Distributed Git {Re: [RFC/PATCH 0/2] Documentation: kicking the "reset --hard" habit}Drew Northup, Nov 5, 2010
  9. Ævar Arnfjörð BjarmasonOct 31, 2010
  10. J. Bruce FieldsNov 1, 2010

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.