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

Re: git-svn wowes

From
EWEric Wong <normalperson@yhbt.net>
Date
Jul 23, 2009, 08:12 UTC
Message-ID
<20090723081208.GB32287@dcvr.yhbt.net>
In-Reply-To
<025FAAA7CA644D709E1635C497753444@HPLAPTOP>
Aaron Gray <aaronngray.lists@googlemail.com> wrote:
Show 13 quoted lines
> Hi,
>
> I have a working git-svn clone of a svn based project.
>
> At the mement I have a .sh script run every hour which goes :-
>
>    git svn fetch
>    git reset -- hard HEAD
>    git svn rebase
>
> I am sure this is like using a hammer to crack a nut.
>
> Is there a better way to do this ?
Assuming you don't make your own local changes ever:
  git svn fetch
  git reset --hard $ref

Where $ref is most likely "trunk" if you used -s/--stdlayout or "git-svn" if you did not. Running `git branch -r' will give you a list of remote refs that you can reset to.

-- 
Eric Wong
Previous: Sverre Rabbelier
Message 3 of 3 in “git-svn wowes”
  1. Aaron GrayJul 22, 2009
  2. Sverre RabbelierJul 22, 2009
  3. Eric WongJul 23, 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.