Fwd: Can't override username of default credential context to have different username in custom context.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx':

But I want to have:
Password for 'https://myOtherUsername@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx':

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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]