gpt4 book ai didi

git - 在 IntelliJ IDEA、WebStorm、RubyMine 等中更改 GIT 登录名/用户名

转载 作者:太空狗 更新时间:2023-10-29 13:58:44 24 4
gpt4 key购买 nike

我的 GIT 帐户的身份验证登录名/用户名已更改。我如何将此告知我的 IntelliJ 产品?

最佳答案

GIT 在远程仓库 URL 中记录登录名。您可以通过多种方式在 IntelliJ 产品中更改它。

捷径2021

  • 双击SHIFT(即SHIFT SHIFT)
  • 搜索无处不在
  • 开始输入管理 Remote ...
  • 按照以下快速方式的描述进行操作

快捷方式

  • 键入CTRL + SHIFT + A 打开输入操作或选项名称 对话框Enter action or option name dialog filtering "remotes..."
  • 键入Remotes... 以过滤列表,如图所示
  • 为 Git 选择 Remotes...(图像上的第一个选择),然后打开以下对话框 enter image description here
  • Git Remotes 对话框中,使用铅笔图标打开Define Remote 对话框enter image description here
  • OK确认
  • 重新输入您的密码,并可选择让 IntelliJ 存储它。

点击方式

  • 选择VCS 菜单
  • 将鼠标悬停在 Git 菜单项上
  • 从子菜单中选择 Remotes...
  • 如上所述继续

终端方式

  • 在您的 IntelliJ 工具中打开 Terminal ALT + F12
  • 输入命令 git ls-remotes --get-url 查看您当前的 Remote
  • 使用修改后的用户名输入命令 git remotes set-url https://my_new_user@my.git.server/path/to/project.git

关于git - 在 IntelliJ IDEA、WebStorm、RubyMine 等中更改 GIT 登录名/用户名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43543035/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com