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

Re: Confusion using git on svn server

From
FWFlorian Weimer <fw@deneb.enyo.de>
Date
Jun 21, 2009, 09:32 UTC
Message-ID
<87ws763pa1.fsf@mid.deneb.enyo.de>
In-Reply-To
<4A3DF8BE.2050504@gmail.com>
* Matthieu Stigler:
> So I just added a minor third commit in order to remove the two
> first. Is there a better way to do than this workaround? Something
> with git rebase --onto (two last?)

If you want to remove the last two commits, you can use "git reset HEAD^^". This moves your working copy (and the associated master branch) back in time.

Previous: Matthieu StiglerNext: Florian Weimer
Message 4 of 5 in “Confusion using git on svn server”
  1. Matthieu StiglerJun 20, 2009
  2. Florian WeimerJun 21, 2009
  3. Matthieu StiglerJun 21, 2009
  4. Florian WeimerJun 21, 2009
  5. Florian WeimerJun 22, 2009

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.