首页 > 系统相关 >could not read Username for 'https://github.com': terminal prompts disabled on windows

could not read Username for 'https://github.com': terminal prompts disabled on windows

时间:2024-03-27 12:44:06浏览次数:23  
标签:Username GIT HTTPS disabled github authenticate https com

https://stackoverflow.com/questions/75990435/could-not-read-username-for-https-github-com-terminal-prompts-disabled-on-w

 

 

Try setting a temporary credential handler for GitHub:

GIT_USER="your-github-username-or-email"
GIT_PASS="PAT"

git config --global credential.helper "!f() { echo \`"username=`${GIT_USER}`npassword=`${GIT_PASS}\`"; }; f"

Or install the github cli and authenticate to github using gh auth login.

And check out the docs mentioned in the error message for other options:

Git can be configured to authenticate over HTTPS or to use SSH in place of HTTPS. To authenticate over HTTPS, you can add a line to the $HOME/.netrc file that git consults:

machine github.com login USERNAME password APIKEY

For GitHub accounts, the password can be a personal access token.

Git can also be configured to use SSH in place of HTTPS for URLs matching a given prefix. For example, to use SSH for all GitHub access, add these lines to your ~/.gitconfig:

[url "ssh://[email protected]/"]
    insteadOf = https://github.com/

标签:Username,GIT,HTTPS,disabled,github,authenticate,https,com
From: https://www.cnblogs.com/gongxianjin/p/18098725

相关文章

  • GitHub WebHook 使用教程
    本文收录于Github.com/niumoo/JavaNotes,Java系列文档,数据结构与算法!本文收录于网站:https://www.wdbyte.com/,我的公众号:程序猿阿朗什么是WebHookWebHook直译是网络钩子,可以把WebHook看做一种通知方式,只要发生关注的事件,就会发送通知到我们指定的Web服务。使用WebHoo......
  • 使用Github托管Unity项目
    ​准备工作在本机生成ssh密钥ssh-keygen-trsa-C"你的邮箱地址"点击回车后会出现生成的密钥路径,我们直接打开密钥复制下来。github官网添加我们的本机密钥进入Github官网,点击设置,选择SSHandGPGkeys点击newSSHkey,将我们刚才在本机生成的ssh密钥放入key中,并起......
  • 一天涨 23k Star 的开源项目「GitHub 热点速览」
     ​在GitHub上做过开源项目的小伙伴,可能都经历过截图自己项目100Star、1000Star的时刻,但有些时候事情发生的太快来不及截图,因为可能一觉醒来就破万了。这件事看似有些天方夜谭,但放在马斯克的身上就不足为奇了。就在昨天,马斯克在GitHub上开源了Grok-1大模型,一天时间......
  • Github配置ssh key详细步骤
    前言公司使用的是github企业版,网页版登陆需要双因子验证(账号,手机验证码,密码),没办法直接gitclone,需要配置sshkey。具体流程使用秘钥生成工具生成rsa秘钥和公钥ssh-keygen-trsa-C"[email protected]"-tkey类型-C注释执行后一直回车即可,最后会在~/.ssh目录下生......
  • Typora结合PicGo + Github搭建个人图床
    目录一、GitHub仓库设置1、新建仓库2、创建Token并复制保存二、PicGo客户端配置1、下载&安装2、配置图床三、Typora配置一、GitHub仓库设置1、新建仓库点击主页右上角的+号创建 Newrepository填写仓库信息2、创建Token并复制保存点击右上角用户头像......
  • github无法访问的问题
    Windows10通过nslookup命令获取GitHub域名服务器地址,然后ping该地址nslookupgithub.comping域名服务器地址发现20.205.243.166能稳定ping通,但是浏览器却打不开接着使用管理员身份运行notepad++,然后打开文件C:\Windows\System32\drivers\etc\hosts,在最后一行加上以下代码......
  • github无法提交代码问题
    问题描述提交代码到个人仓库的时候发现报错,认证失败Usernamefor'https://github.com':hywingPasswordfor'https://[email protected]':remote:SupportforpasswordauthenticationwasremovedonAugust13,2021.remote:Pleaseseehttps://docs.github.com/en/......
  • 自动同步 Github 仓库到 Gitee 仓库
    自动同步你的Github仓库到Gitee仓库个人公私钥的创建ssh-keygen-ted25519-C"GiteeSSHKeyforGithubAction"输出,如:Generatingpublic/privateed25519keypair.Enterfileinwhichtosavethekey(/home/git/.ssh/id_ed25519):#输入保存路径Enterpassphra......
  • https://github.com/google/adb-sync
    大致的实现方式:是一个python文件,在windows上就pythonadb-sync-R-t-n--dry-run/storage/emulated/0C:\a\b这样运行 其中本机系统的文件列表和修改时间获取就用os库(importos)手机上的文件列表和修改时间获取就用ls-al     https://blog.csdn.net/chabb/ar......
  • GitHub Copilot 在命令行界面中的全面应用:为系统运维人员带来的革命性进步
    随着技术的迅猛发展,GitHubCopilot在命令行界面(CLI)中的全面应用标志着对系统运维人员工作方式的重大革新。此次进步不仅仅体现在命令建议和解释的直接获取,更通过为Bash、PowerShell和Zsh添加助手别名,简化了用户的工作流程。本文将探讨GitHubCopilot在CLI中全面可......