git-upload-pack: command not found 解决方法

本文介绍如何将必要的Git相关文件(包括git、git-upload-pack等)正确地放置到Git的bin目录中,确保Git正常工作。
请把文件(git、git-upload-pack、git-upload-archive、git-receive-pack)拷到git的bin目录下
linux@ubuntu:~/CODE/aixam$ GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone http://tyw-server.synology.me:12345/qt_group/aixam 18:42:28.997270 git.c:344 trace: built-in: git clone http://tyw-server.synology.me:12345/qt_group/aixam 正克隆到 'aixam'... 18:42:29.004126 run-command.c:646 trace: run_command: git-remote-http origin http://tyw-server.synology.me:12345/qt_group/aixam * Couldn't find host tyw-server.synology.me in the .netrc file; using defaults * Trying 123.166.98.109... * TCP_NODELAY set * Connected to tyw-server.synology.me (123.166.98.109) port 12345 (#0) > GET /qt_group/aixam/info/refs?service=git-upload-pack HTTP/1.1 Host: tyw-server.synology.me:12345 User-Agent: git/2.17.1 Accept: */* Accept-Encoding: gzip Accept-Language: zh-CN, en-AU;q=0.9, en-CA;q=0.8, en-GB;q=0.7, en;q=0.6, *;q=0.5 Pragma: no-cache * HTTP 1.0, assume close after body < HTTP/1.0 302 Moved Temporarily < Location: http://1.1.1.3:80/sinstall/sinstall.htm?switch=0&url=tyw-server.synology.me:12345/qt_group/aixam/info/refs?service=git-upload-pack < Content-Type: text/html; < Content-Length: 0 < * Closing connection 0 * Clear auth, redirects to port from 12345 to 80* Issue another request to this URL: 'http://1.1.1.3:80/sinstall/sinstall.htm?switch=0&url=tyw-server.synology.me:12345/qt_group/aixam/info/refs?service=git-upload-pack' * Couldn't find host 1.1.1.3 in the .netrc file; using defaults * Trying 1.1.1.3... * TCP_NODELAY set * Connected to 1.1.1.3 (1.1.1.3) port 80 (#1) > GET /sinstall/sinstall.htm?switch=0&url=tyw-server.synology.me:12345/qt_group/aixam/info/refs?service=git-upload-pack HTTP/1.0 Host: 1.1.1.3 User-Agent: git/2.17.1 Accept: */* Accept-Encoding: gzip Accept-Language: zh-CN, en-AU;q=0.9, en-CA;q=0.8, en-GB;q=0.7, en;q=0.6, *;q=0.5 Pragma: no-cache < HTTP/1.1 200 OK < Date: Tue, 22 Jul 2025 08:39:50 GMT < Content-Type: text/html < Content-Length: 22502 < Last-Modified: Tue, 19 Sep 2023 06:42:19 GMT < Connection: close < ETag: "650942cb-57e6" < Expires: Wed, 23 Jul 2025 08:39:50 GMT < Cache-Control: max-age=86400 < X-Frame-Options: SAMEORIGIN < X-XSS-Protection: 1; mode=block; < Accept-Ranges: bytes < * Closing connection 1 warning: 重定向到 http://1.1.1.3:80/sinstall/sinstall.htm?switch=0&url=tyw-server.synology.me:12345/qt_group/aixam/ fatal: http://1.1.1.3:80/sinstall/sinstall.htm?switch=0&url=tyw-server.synology.me:12345/qt_group/aixam/info/refs not valid: is this a git repository? linux@ubuntu:~/CODE/aixam$
07-23
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值