您当前的位置: 首页 >  git

小志的博客

暂无认证

  • 0浏览

    0关注

    1217博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

bash: git-receive-pack: command not found fatal: Could not read from remote repository.

小志的博客 发布时间:2020-12-28 20:31:28 ,浏览量:0

一.报错如下
git.exe push --progress "origin" master
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.
二、报错原因
  • 代码服务器git安装路径是/usr/local/git,不是默认路径,根据提示,在git服务器上, 建立链接文件:
三、解决方式
  • 在linux命令行输入如下命令即可解决:
ln -s /usr/local/git/bin/git-receive-pack /usr/bin/git-receive-pack
关注
打赏
1661269038
查看更多评论
立即登录/注册

微信扫码登录

0.1158s