Re: git-svn wowes
- From
- Eric 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