GIT推后的密码是什么?

发布于 2025-02-11 10:59:32 字数 73 浏览 3 评论 0原文

键入git push后,我被要求输入密码,但我没有显示,但仍继续按我按ENTER,但给了我无效的密码。请密码应该是我们的个人令牌访问

after I typed git push I was asked to input password, which i did but it wasn't showing but still continued the i pressed enter but gave me invalid password. please is the password supposed to be our personal token access

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

活泼老夫 2025-02-18 10:59:32

我很难使用HTTPS协议来验证git。
这就是为什么我正在使用SSH方法,这使一切变得更加容易。

类型git Remote -V
我敢打赌,您将使用HTTPS。

无论如何,

配置git以使用ssh:

  1. 启动代理evar $(ssh -agent)
  2. 创建一个新的ssh键ssh -keygen -t rsa -b b 4096 -c“

” (您可以按几次“输入”)

  1. 复制键cat〜/.ssh/id_rsa.pub

  2. 转到github,单击“设置” => “ SSH和GPG密钥” => “新密钥”

  3. 给它一个名字并经过您的钥匙。

I have trouble authenticate to GIT using the https protocol.
That's why i am using the SSH method which makes everything much easier.

type git remote -v
I bet you will use https.

anyway,

Configuring the git to use SSH :

  1. start the agent eval $(ssh-agent)
  2. Create a new ssh key ssh-keygen -t rsa -b 4096 -C "[email protected]"

It will ask you to enter a passphrase. (you can press 'Enter' few times)

  1. copy the key cat ~/.ssh/id_rsa.pub

  2. Go to github, Click "Settings" => "SSH and GPG Keys" => "New Key"

  3. Give it a name and past you key.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文