【发布时间】:2015-01-18 18:55:00
【问题描述】:
我在 IP 地址为 XXX.XX.XX.XX 的服务器上有一个 git 存储库,我的用户名是 UUU
在我的本地笔记本电脑中,我在 .git/config 文件中进行如下设置:
[remote "origin"]
url = UUU@XXX.XX.XX.XX:/home/UUU/repositories/repo.git
fetch = +refs/heads/*:refs/remotes/origin/*
receivepack = /usr/bin/git-receive-pack
uploadpack = /usr/bin/git-upload-pack
当我在笔记本电脑上使用 git push 或 git pull 时,出现以下错误
bash: /usr/bin/git-upload-pack: No such file or directory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我做错了什么?
【问题讨论】:
-
为什么要指定receivepack/uploadpack?