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

Re: Confusion using git on svn server

From
MSMatthieu Stigler <matthieu.stigler@gmail.com>
Date
Jun 21, 2009, 09:09 UTC
Message-ID
<4A3DF8BE.2050504@gmail.com>
In-Reply-To
<87zlc258nj.fsf@mid.deneb.enyo.de>
Florian Weimer a écrit :
Show 17 quoted lines
> * Matthieu Stigler:
>
>   
>> My main concern is that in my git log, I have a commit and its
>> "revert", will it be sent as two different commits to svn? I would
>> love they are not sent at all as they represent a "neutral" operation.
>>     
>
> They will be sent as a separate commits by default.
>
> You can use "git rebase -i git-svn" to edit your local history before
> submitting it, though.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   
Excellent! This is exactly what I was looking for, thanks!

I had a minor issue as the commits I wanted to remove (a modif and its revert) were the last one, so I could not remove both in the same time, as said:

However, if you remove everything, the rebase will be aborted.

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?)

Thanks a lot!
Previous: Florian WeimerNext: Florian Weimer
Message 3 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.