Le 06/06/13 00:45, Yuri Astrakhan a écrit :
> I wonder if "origin" should be made the default setting for gerrit - after
> all every new git clone automatically uses "origin". The fewer "surprise!"
> moments devs have, the more productive we become.

This is how I name my git remotes:

For Gerrit based repos:

 gerrit : upstream Gerrit ssh (either Wikimedia hosted or third party)
 anonymous : upstream gerrit HTTPS
 wikimedia : Gerrit ssh url when we have a fork of a third party repo
which already takes the 'gerrit' name

So given a Gerrit repo hosted by a third party I will have:

 gerrit ssh://third party repo
 wikimedia ssh://our gerrit repo

And doing git-review will let me interact with upstream. If I want to
update our fork I just: git push wikimedia gerrit/master:master .


For Github:

On a forked repo:
 origin or upstream: the upstream repo
 hashar : my github fork

To update my fork:

 git fetch origin
 git push hashar origin/master:master

My own repo:

 github : name of my repo

 git push github mybranch


That is fairly complicated though and I often have to do a git remote -v
before doing any operation.


-- 
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to