本地Git 克隆远程仓库问题
1.提示信息
原因:原因:原来代码服务器上的git安装路径是/usr/local/git,不是默认路径,根据提示,在git服务器上, 建立链接文件:
报错信息<一>:
bash: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly
解决方法:
ln -s /usr/local/git/bin/git-upload-pack /usr/bin/git-upload-pack
报错信息<二>:
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.
解决办法:
ln -s /usr/local/git/bin/git-receive-pack /usr/bin/git-receive-pack