首页 > 其他分享 >git clone GitHub 仓库报错未授权

git clone GitHub 仓库报错未授权

时间:2024-06-03 20:56:54浏览次数:15  
标签:git CLI clone repo GitHub 报错

git clone GitHub 仓库报错未授权
grant Github authentication to git

Created: 2024-06-03T20:40+08:00
Published: 2024-06-03T20:44+08:00
Categories: Git

GitHub 开启双重认证以后,就不能只依靠 GitHub 的账号密码来 git clone repo 了。

这里提供一种方法,安装 Github Command Line 来 clone repo。

以下是 Ubuntu 的命令:

sudo apt install gh
gh repo clone <repo>

然后按照步骤认证即可,一般是打开浏览器之类的。

参考链接:

GitHub CLI | Take GitHub to the command line

About GitHub CLI - GitHub Docs

Manual | GitHub CLI

标签:git,CLI,clone,repo,GitHub,报错
From: https://www.cnblogs.com/ticlab/p/18229619

相关文章

  • react 报错 元素隐式具有 "any" 类型,因为类型为 "string" 的表达式不能用于索引类型 "
    interfaceitemType{legoBlockId:string;legoBlockNumber:string;//其他属性...}colorListAll().then((res:{result:Array<itemType>})=>{//使用Record<string,any>或更具体的类型(如果已知)constdic:Record<string,any&......
  • 安装jsonpath时报错: ERROR: Could not find a version that satisfies the requireme
    安装jsonpath时报错:ERROR:Couldnotfindaversionthatsatisfiestherequirementjsonpath(fromversions:none)ERROR:Nomatchingdistributionfoundforjsonpath解决方法:pipinstalljsonpath-i http://mirrors.aliyun.com/pypi/simple/--trusted-hostmirrors.......
  • pytest运行报错:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xaf in posit
    pytest运行报错:UnicodeDecodeError:‘gbk’codeccan’tdecodebyte0xafinposition82:illegalmultibytesequence  D:\Python\environment\python3.9.7\python3.exeD:/Python/nas_autotest/run.pyTraceback(mostrecentcalllast):File"D:\Python\......
  • std::numeric_limits::max和宏定义重复报错问题
    std::numeric_limits::max和宏定义重复报错问题问题描述今天在编译BeckhoffADS开源组件的时候发现编译报错,报错代码如下longAdsDevice::ReadReqEx2(uint32_tgroup,uint32_toffset,size_tlength,void*buffer,uint32_t*bytesRead)const{if(length>std::nume......
  • CMakeFile.txt通过sysroot方式后生成makefile报错
    怪不得博客园干不过别家,体验真的不太好。通过openwrite发布文章,其他平台都能发布,就博客园限制了,理由是文字少的文章限制发布到该平台。哎,这种行为当真是扶不起的阿斗。以后也不要太把博客园当回事了,迟早要关门的报错信息如下:--TheCcompileridentificationisunknown--T......
  • git 命令报错:Another git process seems to be running in this repository, e.g. an
    执行git命令时,报错:Anothergitprocessseemstoberunninginthisrepository,e.g.aneditoropenedby'gitcommit'.Pleasemakesureallprocessesareterminatedthentryagain.Ifitstillfails,agitprocessmayhavecrashedinthisrepository......
  • 联想打印机更换硒鼓后仍旧报错,如何做硒鼓计数器清零?
        在联想打印机的使用过程中,硒鼓是一个重要的耗材,它直接影响到打印质量和打印机的运行。通常,当打印机显示硒鼓错误或者打印质量下降时,更换新的硒鼓是一个常见的解决方案。然而,有时候即使更换了新的硒鼓,打印机仍然会报错,这可能是由于硒鼓计数器没有清零导致的。  ......
  • svg图片放img标签报错解决办法
    错误代码:<divv-if="item.showType=='2'":id="'tag'+index"class="tag-icon-text"@click="tagClick(item)"><imgsrc="@/assets/images/flag.jpg"class="img"/>......
  • 解决安装cuda时vs报错MSB3721的问题
    以下几种可能1.调整调试平台为x642.点击vs顶部导航栏的调试->最下面那一项属性->CUDAC/C++->Common->CUDADustuomDir设置为你安装CUDAtoolkit的目录3.如果你的电脑系统用户名为中文,请前往环境变量->用户变量,将tmp和temp的值修改为一个新文件夹(建议在D盘里面创建一个tem......
  • vscode 报错:应输入表达式
    如图,报错:应输入表达式,但是我的==看起来是正确的。后面发现原来是我的定义有问题,这里定义处多了分号“;”,然后vscode检测不到该定义,故会报错。......