From: Vincent Pit Date: Sun, 21 Dec 2008 19:34:23 +0000 (+0100) Subject: Document how commiters can keep 'origin' as a git remote and push with another ssh... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f6c12373efa87e4286a97122c0ea72922ef8bcec;p=p5sagit%2Fp5-mst-13.2.git Document how commiters can keep 'origin' as a git remote and push with another ssh remote. --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index 946bb55..7b1b619 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -72,6 +72,17 @@ You can also set up your user name and e-mail address. For example % git config user.name "Leon Brocard" % git config user.email acme@astray.com +It is also possible to keep C as a git remote, and add a new remote for ssh access: + + % git remote add camel user@camel:/gitroot/perl.git + +This allows you to update your local repository by pulling from C, which is faster and doesn't require you to authentify, and to push your changes back with the C remote: + + % git fetch camel + % git push camel + +The C command just updates the C refs, as the objects themselves should have been fetched when pulling from C. + =head1 OVERVIEW OF THE REPOSITORY Once you have changed into the repository directory, you can inspect it.