git 本地仓库master跟踪到远程仓库报错

[git@iZ9stefgbej5jkZ gitrepo]$ git remote add origin ssh://git@ip/home/gitrepo
[git@iZ9stefgbej5jkZ gitrepo]$ git push origin master
git@ip's password:
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

百度不到解决的方案,只能求助各位道友了

2017/10/24 16:45
详细说明一下,并不是远程连接到GitHub的库,我是打算在centos服务器上自建git仓库,但在创建完共享仓库,把本地master分支和远程仓库关联起来时报错,和GitHub没关系

http://blog.csdn.net/qq_26769677/article/details/71370113

就是把你安装的gi的t文件夹下的bin目录里面命令软连接到/usr/bin/目录下;如
ln -s /opt/git/bin/git-receive-pack /usr/bin/git-receive-pack 其中/opt/git/bin是我的git安装目录 每个人不一样‘
可以参看链接
链接内容