Using different protocols for "pull" and "push".
- From
- Nikos Chantziaras <realnc@arcor.de>
- Date
- Jun 4, 2009, 23:16 UTC
- Message-ID
- <h09kk8$rb4$1@ger.gmane.org>
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:// ?