public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* Fwd: Can't override username of default credential context to have different username in custom context.
@ 2015-04-27 16:19 Vladislav Kostenko
  2015-04-28  5:25 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Vladislav Kostenko @ 2015-04-27 16:19 UTC (permalink / raw)
  To: git

Hi,

Here is my scenario:

1. First I set default username
git config --global credential.username myUsername

2. Then I want to have different username for my other repository
git config --global
credential.https://myOtherRepository.visualstudio.com.username
myOtherUsername

3. When I try to pull new changes, git asks for password of myUsername
Password for 'https://myUsername@myOtherRepository.visualstudio.com':

But I want to have:
Password for 'https://myOtherUsername@myOtherRepository.visualstudio.com':

Is there any way to accomplish overriding?

PS: I've found that if I change steps 1 and 2 I will get what I want.
But this is not a solution as it require to unset and set
credential.username after I add a new credential context. So the
ordering does matter and it looks for me like it shouldn't.

-- 
Best regards, Vlad.

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

end of thread, other threads:[~2015-04-28  5:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 16:19 Fwd: Can't override username of default credential context to have different username in custom context Vladislav Kostenko
2015-04-28  5:25 ` Jeff King
2015-04-28  5:25   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox