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

Re: What's The Right Way to Do This?

From
Michael Witten <mfwitten@gmail.com>
Date
Sep 23, 2011, 05:08 UTC
Message-ID
<CAMOZ1BtTi7GxwTvPTEtHoV-GspAZKJiLauXfkwBFJk+RZJT_7A@mail.gmail.com>
In-Reply-To
<loom.20110923T064720-366@post.gmane.org>
On Fri, Sep 23, 2011 at 04:48, Jon Forrest <nobozo@gmail.com> wrote:
Show 5 quoted lines
> ... So, I tried to revert using various methods I found by
> googling "git revert"...
> ...
> ...this experience left me wondering what I should have
> done in the first place.

What you should have done in the first place is RTFM; while not fantastic, there is a decent amount of official git documentation.

Show 5 quoted lines
> What happened was that when I tried to revert back to the
> commit before the one I made, the files I had modified
> *and* the files that apparently were modified by other
> people in #3 above were reverted. This wasn't what
> I wanted. I only wanted to revert the changes I had made.

It would be a good idea to reproduce the unexpected behavior you are experiencing by means of a minimal set of commands that you can post here for others to try.

> With the help of someone more experienced than me we were
> able to get things back to normal... There's a chance I'm
> going to have to go through all this again as I try to fix
> the problem with my changes.
Why don't you ask that person about it?
Previous: Jon ForrestNext: Luke Diamand
Message 2 of 6 in “What's The Right Way to Do This?”
  1. Jon ForrestSep 23, 2011
  2. Michael WittenSep 23, 2011
  3. Luke DiamandSep 23, 2011
  4. Jon ForrestSep 23, 2011
  5. Johannes SixtSep 23, 2011
  6. Junio C HamanoSep 23, 2011

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.