Grokbase
x

Re: git?

View PostFlat  Thread  Threaded | < Prev - Next >
A. Pagaltzis Re: git?
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* demerphq <demerphq@gmail.com> [2008-11-15 00:45]:
> 2008/11/15 Aristotle Pagaltzis <pagaltzis@gmx.de>:
> > But wrong on a lot of details. The remote needs a name, and
> > the syntax for SSH-based remotes is not URLish, but SSHish:
> >
> > git remote add origin nick@perl5.git.perl.org:perl.git
>
> Actually its both, plus scp'ish. :-)
>
> Try it. I actually prefer the scp notation as its shorter.
>
> git remote add perl5.git.perl.org:/perl.git

That *is* the syntax I suggested. :-) Your example just doesn’t
include a user name, which of course is fine if ssh DTRT in that
regard.

> > Next, git-pull is actually git-fetch (which downloads commits
> > you are missing) *plus* git-merge. Because of the latter, you
> > have to say which branch you want to merge. And since
> > git-pull is used to merge changes from a remote branch, and
> > you can have several remotes configured (it's a DVCS!), you
> > also have to specify which remote, to make it unambiguous. So
> > based on the above you'd say
>
> Only if the current workin branch doesnt have a remote defined
> for it. In which case 'git pull' will work fine.

Ah. I guess in the few cases where I’ve used it, I set up my
branch in a way that doesn’t do that automatically, so I didn’t
know that it would.

> > If you have push access to all of your remotes, and you want
> > to push to all, you can also pass `--all` instead of a
> > particular remote.
>
> Huh? --all is documented as pushing all refs to the remote
> specified. Not pushing to all remotes. Have i missed a trick
> here?

Woops, you are right.

> Hrm, I didnt know that you could define multiple urls for a
> single remote. That seems a bit strange to me.

Strange maybe, but extremely useful! Makes it very easy to deal
with multiple repos that you _publish_ to (vs the ones you
actually muck around in), or even multiple sets of them (if your
workflow is so defined).

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread : git?
1)
Chip Salzenberg I'm using the git mirror of the p4 repository (yay thank you gitguys), and I'm wondering whether...
2)
Michael G Schwern It's my understanding that we're waiting until after 5.8.9 so that Nick's head doesn't explode....
3)
Craig Berry I could envision some good mutual publicity from making them an "official mirror" or similar. I...
4)
Joshua Hoblitt I agree with Craig but why weren't these guys directed to the TPF proper? It seems like cooperative...
5)
David Golden Since the whole idea of "authoritative" is a bit loose in git anyway, I'd be supportive of using...
6)
A. Pagaltzis I don’t know why we couldn’t declare them both equally authoritative as long as synching is set...
7)
Leon Brocard 2008/11/13 Chip Salzenberg <chip@pobox.com>: d rom We are in the process of moving from Perforce to...
8)
Nicholas Clark One part of the documentation I know is missing is: There are no instructions on how to commit back...
9)
Tux $ git remote add git+ssh://perl5.git.perl.org/perl.git $ git pull $ git push I think. Correct? > *...
10)
A. Pagaltzis Roughly. But wrong on a lot of details. The remote needs a name, and the syntax for SSH-based...
11)
demerphq 2008/11/15 Aristotle Pagaltzis <pagaltzis@gmx.de>: Actually its both, plus scp'ish. :-) Try it. I...
12)
demerphq 2008/11/15 demerphq <demerphq@gmail.com>: I was typing too quickly: git remote add p5p...
13)
A. Pagaltzis That *is* the syntax I suggested. :-) Your example just doesn’t include a user name, which of...
14)
demerphq 2008/11/14 Léon Brocard <acme@astray.com>: Ive been on and off working on camel.booking.com, and...
spacer
View PostFlat  Thread  Threaded | < Prev - Next >
Home > Groups > Perl 5 Porters > git? (14 posts) > View Post