From: Chris Packham <judge.packham@gmail.com>
To: git@vger.kernel.org
Subject: ssh username environment variable
Date: Fri, 8 Jan 2010 15:24:12 -0500 [thread overview]
Message-ID: <a038bef51001081224l33164526y51e5ca064b82b73a@mail.gmail.com> (raw)
Hi List,
Just wondering if there is an environment variable I can use to tell
git or ssh what user name to use for the ssh transport?
I would normally use
git clone ssh://myname@example.com/repo.git
but I'm cloning to a relatively public network drive (corporate
overlords don't want git no mater what I say) so I want to do
something like
GIT_SSH_USER=myname git clone ssh://example.com/repo.git
So that my user name doesn't show in the resulting remote.origin.url
I know I can probably just remove my user name from the config after
the the fact but I have to do this for a few repos so I thought I'd
ask if there was a magic environment variable I could set.
Thanks.
next reply other threads:[~2010-01-08 20:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-08 20:24 Chris Packham [this message]
2010-01-08 20:29 ` ssh username environment variable Shawn O. Pearce
2010-01-08 20:34 ` Junio C Hamano
2010-01-08 20:37 ` Chris Packham
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=a038bef51001081224l33164526y51e5ca064b82b73a@mail.gmail.com \
--to=judge.packham@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).