All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikos Chantziaras <realnc@arcor.de>
To: git@vger.kernel.org
Subject: Using different protocols for "pull" and "push".
Date: Fri, 05 Jun 2009 02:16:44 +0300	[thread overview]
Message-ID: <h09kk8$rb4$1@ger.gmane.org> (raw)

Hi.

I wonder if it's possible to setup Git (probably in .git/config) to use 
SSH only for "git push" and use the git protocol for "git pull".  My 
current configuration is:

[remote "origin"]
         url = ssh://user@project.someserver.net/gitroot/project
         fetch = +refs/heads/*:refs/remotes/origin/*

Issuing a "git pull" command results in pulling using SSH (along with 
asking for a password).  Is there a way to alter the configuration so 
that a "pull" will use git:// instead of ssh:// ?

             reply	other threads:[~2009-06-04 23:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 23:16 Nikos Chantziaras [this message]
2009-06-05  0:52 ` Using different protocols for "pull" and "push" Junio C Hamano
2009-06-06 14:43   ` [WIP/RFC] Allow push and fetch urls to be different Michael J Gruber
2009-06-06 14:50     ` Tay Ray Chuan
2009-06-06 17:57     ` Linus Torvalds
2009-06-07  4:19     ` Junio C Hamano
2009-06-07  9:00       ` Michael J Gruber
2009-06-05 15:03 ` Using different protocols for "pull" and "push" Mike Gaffney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h09kk8$rb4$1@ger.gmane.org' \
    --to=realnc@arcor.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.