[英]Change GIT login/username in IntelliJ IDEA, WebStorm, RubyMine etc
Authentication login/username for my GIT account changed.我的 GIT 帐户的身份验证登录名/用户名已更改。 How do I tell this to my IntelliJ product?我如何告诉我的 IntelliJ 产品?
GIT record login-name in remote repository URL. GIT 在远程存储库 URL 中记录登录名。 You can change that in IntelliJ product in couple of ways.您可以通过多种方式在 IntelliJ 产品中更改它。
git ls-remotes --get-url
to see your current remotes输入命令git ls-remotes --get-url
以查看您当前的遥控器git remotes set-url https://my_new_user@my.git.server/path/to/project.git
输入带有修改过的用户名的命令git remotes set-url https://my_new_user@my.git.server/path/to/project.git
i met this problem before, and solved it by steps:我以前遇到过这个问题,并通过步骤解决了它:
git pull origin <your branch>
输入需要与git服务器通信的git命令,如git pull origin <your branch>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.