[Sugar-devel] Managing github forks

Manuel Quiñones manuq at laptop.org
Mon May 27 20:10:01 EDT 2013


2013/5/26 Daniel Narvaez <dwnarvaez at gmail.com>:
> Hello,
>
> I've been playing with a slightly different workflow with github
> repositories and it seems to work well for me.
>
> I keep origin to be git at github.com/sugarlabs/module and I add a fork remote
> pointing to git at github.com/dnarvaez/module.
>
> To send pull requests I just
>
> git push fork myfeature
>
> To merge other people patches
>
> git checkout master
> git pull git://github.com/theirname/module theirfeature
> git push
>
> To update the fork (but with setup it doesn't even seem to be quite
> necessary, you could just stay on origin master and only worry about fork
> branches).
>
> git pull
> git push fork master
>
> This seems to be working pretty well for me so far. Thoughts?
> If it works well for people in general I could add prefs to sugar-build to
> set this up automatically. It's pretty annoying to have to setup the remote
> configuration every time you do a clean clone.

Yes, this works well but you should be more careful whlie hacking,
because a wrong push could mess the main repository (calling commands
in the wrong order, for example).  Personally I hack in my own fork,
and when I put my reviewer hat I switch to the main repository
directory.

By the way as this works for you and there are optional preferencies, I'm +1 .

--
.. manuq ..


More information about the Sugar-devel mailing list