Blogger Information
Blog 63
fans 2
comment 0
visits 163282
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Git克隆远程仓库提示 bash: git-upload-pack: 未找到命令 fatal: Could not read from remote repository.
书声的博客
Original
4485 people have browsed it

本地Git 克隆远程仓库问题

1.提示信息

提示信息

原因:原因:原来代码服务器上的git安装路径是/usr/local/git,不是默认路径,根据提示,在git服务器上, 建立链接文件:

报错信息<一>:

  1. bash: git-upload-pack: command not found
  2. fatal: The remote end hung up unexpectedly

解决方法:

  1. ln -s /usr/local/git/bin/git-upload-pack /usr/bin/git-upload-pack

报错信息<二>:

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

解决办法:

  1. ln -s /usr/local/git/bin/git-receive-pack /usr/bin/git-receive-pack
显然,我上面的提示信息综合了这两个错误,所以执行两次,就可以了

Linux


git

原文地址

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post