git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ssh username environment variable
@ 2010-01-08 20:24 Chris Packham
  2010-01-08 20:29 ` Shawn O. Pearce
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Packham @ 2010-01-08 20:24 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-08 20:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 20:24 ssh username environment variable Chris Packham
2010-01-08 20:29 ` Shawn O. Pearce
2010-01-08 20:34   ` Junio C Hamano
2010-01-08 20:37     ` Chris Packham

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).