Change git username

Hello, Im using MAC with Rider

I have a issue while cloning any repository from a remote url, I can't change the username, 

the username that is in that popup is the same always and it dont let me change it, I need to change it to my username, why in that?

thanks

0
18 comments

Hi,

Could you please clarify what plugin you use for Azure DevOps integration in Rider (and its version in `Preferences | Plugins`)? 

Also, please clarify Rider version.

 

K.R.

Sofia

0

Rider Version I use is 2021.3.4 and the Plugin Azure Devops 1.162.0 Thanks

0

Thanks for the information.

Please try to use IntelliJ git plugin instead and clone your repository via Git not via Azure DevOps Git.

 

0

Is there an update on this? Why does it not allow to change the username?

0

Hello, 

It is indeed not possible to edit the username field in the login dialog (https://github.com/microsoft/azure-devops-intellij/issues/428). Please try to use IntelliJ git plugin instead and clone your repository via Git not (Azure DevOps Git by Microsoft).

0

Answers here are not helpful. I use the bundled Git plugin, not the one by Microsoft, and still cannot change username. There are no IntelliJ alternative in the market place.

1
Hello Thomas,
I'm sorry for not responding long time.
I double-checked this issue.
Now I see that if you put a new style url while cloning, it contains a user name `https://sofiabyzova0401@dev.azure.com/sofiabyzova0401/TestProject/_git/TestProject`. This is why the form does not allow you to sign in.
If you put there an old style url like `https://sbyzova.visualstudio.com/testGitProject/_git/testGitProject`, then it is possible to change the username in this form.

If you use a generated password to access your repository, does it work for you? Are you able to login without changing the predefined username?
0

Is this going to be fixed?

0

I believe no, this is by design.

0

Have the same Issue, more then annoying. 

I use now an other client for git, but Rider stil give me the popup every x time. 

When this is by (bad) design (really bad). Make an option in the popup to disable it... 

0

Could you please elaborate on a use-case scenario?
How exactly do you obtain a repository link? Do you copy it from somewhere or it is sent to you by someone?

Basically, the reason why a username cannot be changed is this:
IDE relies on command-line git and simply provides a dialog window where you can enter authentication data when it is requested by Git.

Based on information that I have found in this thread, it seems that SSH is being used as a way to communicate with git repostiory and URL that is being used has a format <USERNAME>@<Remote-repository-server-URL>
Due to the fact that <USERNAME> is set to some custom username and not to `git` username, then only a password is requested.

If you try to run any remote-related git command in CLI, you will be prompted to enter a password only, and there will be no option to change username. Since git in CLI doesn't allow change a username, the same happens in IDE

0

I have to agree this git setup is a terrible design.  I spent hours trying to figure out how to make this work.  I copied my clone url from azure devops.  I only finally managed to copy my code by using visual studio for mac.  Also I can't try and edit the url as suggested using the backspace key.  In my case I'm thinking Rider has a hard time handling 3rd party oauth such as Okta as well.  Even after finally cloning my repo using visual studio mac, Rider was unable to utilize the nuget config file to be able to pull my companies nuget packages from their server.  

0
Hi Alma,

Can you please share a screenshot of the issue?

Additonally, can you please elaborate more on the nuget package part?
0

This is even worth when you were already using that and for some reason you are requested to login again and can't really edit anything in the form, nor username, neither URL, using “credentials helper” just says “authentication failed" and does not allow to edit anything either

0

Hi Oleg,

Can you modify your remote url end-point? 

0

This issue makes no sense.  I go to Azure devops, generates a URL like this for me to clone from:  https://{numbersandletters}@dev.azure.com/{numbersandletters}/{moreurlbits}

The numbers and letters are what Rider thinks is my username but it's not and  I can't change it!   So I have no way of getting my repository down to the Mac.

How do I even use git on AzureDevops in Rider?

Don't know how, but I've never had any problems on the PC version  but I would clone the repository from visual studio

0

Hello Stefan Olson, it seems that you need to take some extra steps. Please check the authentication-related docs from Microsoft. One way to proceed would be to generate a PAT for your repo using the Generate Git Credentials button and then use PAT as the password, when prompted. After that you can choose the “Use credentials helper” option to use cached credentials.

0

I ran into this problem today when I was setting up a new dev environment within a new WSL vm. Fortunately I it seems that I had previously experienced a similar issue and configured git to use a git-credential helper. This is how it was configured on WSL running on Windows. On a Mac I believe you would provide the absolute path to the OS X keychain utility instead.

```
[user]

    name = yourname

    email = youremail@example.com
 

[credential]

        helper = /mnt/c/Users/yourname/AppData/Local/Programs/Git/mingw64/bin/git-credential-manager.exe

[credential "https://dev.azure.com"]

        useHttpPath = true

```

0

Please sign in to leave a comment.