cms-sw / cms-git-tools

CMS Git Helpers
34 stars 26 forks source link

git cms-remote #73

Closed fwyzard closed 7 years ago

fwyzard commented 9 years ago

Hi, can we add a git cms-remote command, with limited functionality ? I would like to be able to do

git cms-remote add fwyzard

as a shortcut for

git remote add fwyzard https://github.com/fwyzard/cmssw.git
git remote set-url --push fwyzard git@github.com:fwyzard/cmssw.git

(possibly with support for the --ssh and --https options as in git cms-init to force using only ssh or only https)

ktf commented 9 years ago

Should we really duplicate hub? Maybe it makes more sense we simply start to ship it as well..

On Tue Nov 11 2014 at 11:09:38 AM Andrea Bocci notifications@github.com wrote:

Hi, can we add a "git cms-remote" command, with limited functionality ? I would like to be able to do

git cms-remote add fwyzard

as a shortcut for

git remote add fwyzard https://github.com/fwyzard/cmssw.git git remote set-url --push fwyzard git@github.com:fwyzard/cmssw.git

(possibly with support for the --ssh and --https options as in git cms-init to force using only ssh or only https)

— Reply to this email directly or view it on GitHub https://github.com/cms-sw/cms-git-tools/issues/73.

fwyzard commented 9 years ago

I don't mind one way or another... I didn't know 'bout hub, now I have a new toy to play with ;-)

ktf commented 9 years ago

gem install hub

On Tue Nov 11 2014 at 11:19:25 AM Andrea Bocci notifications@github.com wrote:

I don't mind one way or another... I didn't know 'bout hub, now I have a new toy to play with ;-)

— Reply to this email directly or view it on GitHub https://github.com/cms-sw/cms-git-tools/issues/73#issuecomment-62527571.