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