You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@buildr.apache.org by Victor Hugo Borja <vi...@gmail.com> on 2009/03/04 16:12:54 UTC

GitFlow and sync between git and svn.

Hi,

Yesterday I implemented a tiny tool [1] that allows you to write git-like
commands that improve your git workflow by doing repetitive git commands for
you.
It's generic enough to be used on any git based project. I just used it to
implement buildr's git sync command [2] and svn configuration commands.

To use buildr-git on a daily basis, just register an alias like

             git config alias.apache '!'"ruby
$PWD/doc/scripts/buildr-git.rb"

After that you can get help for the registered apache commands:

             git apache help

For committers willing to sync git<->svn

             git apache help setup svn

             git remote add upstream git@github.com:buildr/buildr.git
             git apache update-users
             git apache setup svn --username vborja --apache-git upstream
             git apache sync


[1] http://github.com/buildr/buildr/blob/master/doc/scripts/gitflow.rb
[2] http://github.com/buildr/buildr/blob/master/doc/scripts/buildr-git.rb

-- 
vic

Quaerendo invenietis.

Re: GitFlow and sync between git and svn.

Posted by Alexis Midon <al...@gmail.com>.
I've been facing the same issue lately, and I didn't find a fix for it :(

Alexis


On Wed, Mar 4, 2009 at 7:27 AM, Victor Hugo Borja <vi...@gmail.com>wrote:

> I'm using git apache sync to push my changes to both svn/git .. however
> there seems to be a problem while executing dcommit [1], even when git says
> the svn rebase has failed, I can see the commits have made it to svn, but
> then if I git apache sync again, it rebases correctly and updates the git
> townhall. I guess I need some git wizardy help on [1]
>
>
> [1]
> http://github.com/buildr/buildr/blob/master/doc/scripts/buildr-git.rb#L331
>
> On Wed, Mar 4, 2009 at 9:12 AM, Victor Hugo Borja <vic.borja@gmail.com
> >wrote:
>
> > Hi,
> >
> > Yesterday I implemented a tiny tool [1] that allows you to write git-like
> > commands that improve your git workflow by doing repetitive git commands
> for
> > you.
> > It's generic enough to be used on any git based project. I just used it
> to
> > implement buildr's git sync command [2] and svn configuration commands.
> >
> > To use buildr-git on a daily basis, just register an alias like
> >
> >              git config alias.apache '!'"ruby
> > $PWD/doc/scripts/buildr-git.rb"
> >
> > After that you can get help for the registered apache commands:
> >
> >              git apache help
> >
> > For committers willing to sync git<->svn
> >
> >              git apache help setup svn
> >
> >              git remote add upstream git@github.com:buildr/buildr.git
> >              git apache update-users
> >              git apache setup svn --username vborja --apache-git upstream
> >              git apache sync
> >
> >
> > [1] http://github.com/buildr/buildr/blob/master/doc/scripts/gitflow.rb
> > [2]
> http://github.com/buildr/buildr/blob/master/doc/scripts/buildr-git.rb
> >
> > --
> > vic
> >
> > Quaerendo invenietis.
> >
>
>
>
> --
> vic
>
> Quaerendo invenietis.
>

Re: GitFlow and sync between git and svn.

Posted by Victor Hugo Borja <vi...@gmail.com>.
I'm using git apache sync to push my changes to both svn/git .. however
there seems to be a problem while executing dcommit [1], even when git says
the svn rebase has failed, I can see the commits have made it to svn, but
then if I git apache sync again, it rebases correctly and updates the git
townhall. I guess I need some git wizardy help on [1]


[1]
http://github.com/buildr/buildr/blob/master/doc/scripts/buildr-git.rb#L331

On Wed, Mar 4, 2009 at 9:12 AM, Victor Hugo Borja <vi...@gmail.com>wrote:

> Hi,
>
> Yesterday I implemented a tiny tool [1] that allows you to write git-like
> commands that improve your git workflow by doing repetitive git commands for
> you.
> It's generic enough to be used on any git based project. I just used it to
> implement buildr's git sync command [2] and svn configuration commands.
>
> To use buildr-git on a daily basis, just register an alias like
>
>              git config alias.apache '!'"ruby
> $PWD/doc/scripts/buildr-git.rb"
>
> After that you can get help for the registered apache commands:
>
>              git apache help
>
> For committers willing to sync git<->svn
>
>              git apache help setup svn
>
>              git remote add upstream git@github.com:buildr/buildr.git
>              git apache update-users
>              git apache setup svn --username vborja --apache-git upstream
>              git apache sync
>
>
> [1] http://github.com/buildr/buildr/blob/master/doc/scripts/gitflow.rb
> [2] http://github.com/buildr/buildr/blob/master/doc/scripts/buildr-git.rb
>
> --
> vic
>
> Quaerendo invenietis.
>



-- 
vic

Quaerendo invenietis.