首页 > 其他 > 详细

git clone 报错:fatal: index-pack failed 解决办法

时间:2019-05-24 21:17:53      阅读:1783      评论:0      收藏:0      [点我收藏+]

duwei@LAPTOP-LQF2J8H0 MINGW64 /d/Users/xxx/venv/program (master)

$ git clone https://github.com/XXX/program.

git Cloning into ‘program‘... remote: Enumerating objects: 1417, done.

remote: Counting objects: 100% (1417/1417), done.

remote: Compressing objects: 100% (945/945), done.

fatal: --stdin requires a git repository

fatal: index-pack failed

 

报错原因是当前文件夹并非git目录,进行设置后即可clone project

执行以下命令:

$ git config user.email "your email address"

$ git config user.name "username"

 

执行完成后,执行clone命令:

$ git clone https://github.com/XXXX/program.git

Cloning into ‘program‘...

remote: Enumerating objects: 1417, done.

remote: Counting objects: 100% (1417/1417), done.

remote: Compressing objects: 100% (945/945), done.

Receiving objects: 13% (191/1417), 308.00 KiB | 8.00 KiB/s

git clone 报错:fatal: index-pack failed 解决办法

原文:https://www.cnblogs.com/ohlala/p/10920088.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!