在IntelliJ IDEA,WebStorm,RubyMine等中更改GIT登录名/用户名 [英] Change GIT login/username in IntelliJ IDEA, WebStorm, RubyMine etc
本文介绍了在IntelliJ IDEA,WebStorm,RubyMine等中更改GIT登录名/用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的GIT帐户的身份验证登录名/用户名已更改. 我该如何告诉我的IntelliJ产品?
Authentication login/username for my GIT account changed. How do I tell this to my IntelliJ product?
推荐答案
GIT在远程存储库URL中记录登录名.您可以通过几种方式在IntelliJ产品中进行更改.
GIT record login-name in remote repository URL. You can change that in IntelliJ product in couple of ways.
- 键入 CTRL + SHIFT + A 打开输入操作或选项名称对话框
- 键入 Remotes ... 来过滤图像中的列表
- 为Git选择 Remotes ... (图像上的第一个选择),然后打开以下对话框
- 在 Git Remotes 对话框中,使用铅笔图标打开 Define Remote 对话框
- 按确定确认
- 重新输入您的密码,并可以选择让IntelliJ存储它.
- Type CTRL + SHIFT + A to open Enter action or option name dialog
- Type Remotes... to filter the list as in image
- Select Remotes... for Git (first selection on image) and following dialog is openede
- In Git Remotes dialog, use pencil icon to open Define Remote dialog
- Press OK to confirm
- Re-enter your password and optionally have IntelliJ store it.
- 选择 VCS 菜单
- 将鼠标悬停在 Git 菜单项上
- 从子菜单中选择远程处理...
- 如上所述继续
- Select VCS menu
- Hover on Git menu item
- Select from sub-menu Remotes...
- Continue as described above
- 在IntelliJ工具 ALT + F12 中打开端子
- 输入命令
git ls-remotes --get-url
以查看当前的遥控器 - 输入具有修改后的用户名
git remotes set-url https://my_new_user@my.git.server/path/to/project.git
的命令
- Open Terminal in your IntelliJ tool ALT + F12
- Enter command
git ls-remotes --get-url
to see your current remotes - Enter command with modified username
git remotes set-url https://my_new_user@my.git.server/path/to/project.git
这篇关于在IntelliJ IDEA,WebStorm,RubyMine等中更改GIT登录名/用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文