繁体   English   中英

intellij idea 想要每个 git 命令的 git 用户名和密码

[英]intellij idea wants git username and password for every git command

我有个问题。 当我写 git 拉到终端时,intellij idea 每次都需要用户名和密码。 我正在使用 ubuntu 20.04。 我能做些什么? 我尝试在 git 中设置 email 和全局名称。 我尝试将 ssh 密钥添加到我的 github 帐户中。

在此处输入图像描述

正如这里提到的https://git-scm.com/docs/git-credential-store ,您可以使用git-credential-store - Helper将您的凭据无限期地存储在磁盘上以供将来的 Git 程序使用。

$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>

[现在自动没有凭据提示]

$ git push http://example.com/repo.git
[your credentials are used automatically]

您的密码将不经加密以纯文本形式存储在磁盘上,仅受文件系统权限保护。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM