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
Please sign in to leave a comment.
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
Rider Version I use is 2021.3.4 and the Plugin Azure Devops 1.162.0 Thanks
Thanks for the information.
Please try to use IntelliJ git plugin instead and clone your repository via Git not via Azure DevOps Git.
Is there an update on this? Why does it not allow to change the username?
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).
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.
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?
Is this going to be fixed?
I believe no, this is by design.
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...
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