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

Re: git-svn bug?

From
Seth Falcon <sethfalcon@gmail.com>
Date
Nov 15, 2006, 22:33 UTC
Message-ID
<m2psbocpbo.fsf@ziti.local>
In-Reply-To
<op.ti2svo0ozidtg1@rygel.lnxi.com>
"Troy Telford" <ttelford.groups@gmail.com> writes:
Show 18 quoted lines
> I've got a repository I've converted over to git from svn.  (using
> git-svn.  since there's only been one branch, I figured I could skip
> git-svnimport).
>
> For quite a while, all I did was fetch/rebase from the svn repository
> to  my git repository; all of my own work was committed to the git
> repository;  none of the changes were commited to the svn repository.
>
> Then came the time to commit changes from my git repository to the svn
> repository.
>
> Being somewhat cautious, I created an empty 'dummy' svn repository and
> familiarize myself with using git-svn to commit from git -> svn.
>
> I ran:
> git-svn fetch
> git-svn rebase remotes/git-svn (already updated)
> git-svn dcommit (to push my changes to the svn repository)
I always send commits as:
git-svn dcommit remotes/git-svn..master

Possibly replacing master with whatever git branch I'm working on. One nice thing about this approach is that you can sort of preview the commit as:

  git diff remotes/git-svn..master

[but that just shows overall diffs and git-svn dcommit will apply each commit in master separately to svn]

Previous: Eric WongNext: Shawn Pearce
Message 7 of 10 in “git-svn bug?”
  1. Troy TelfordNov 15, 2006
  2. Junio C HamanoNov 15, 2006
  3. Troy TelfordNov 15, 2006
  4. Eric WongNov 17, 2006
  5. Troy TelfordNov 17, 2006
  6. Eric WongNov 19, 2006
  7. Seth FalconNov 15, 2006
  8. Shawn PearceNov 15, 2006
  9. Seth FalconNov 16, 2006
  10. Troy TelfordNov 15, 2006

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.