我在同一网络上设置了 linux 服务器,当我尝试将 repo 添加到我的计算机时,我收到以下错误消息:
ssh: Could not resolve hostname 192.168.1.128:: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我在 mac 上使用 git tower,存储库 url 如下所示:
ssh://linux@192.168.1.128:/var/www/gitrepo/cm_main.git
更新:(删除 ssh:// 后我收到的错误消息
Pushing to linux@192.168.1.128:/var/www/gitrepo/cm_main.git
Counting objects: 965, done.
Delta compression using up to 2 threads.
Compressing objects: 0% (1/946)
Compressing objects: 1% (10/946)
...
Compressing objects: 99% (937/946)
Compressing objects: 100% (946/946)
Compressing objects: 100% (946/946), done.
Writing objects: 0% (1/965)
Writing objects: 1% (10/965)
Writing objects: 2% (20/965)
Writing objects: 3% (29/965)
fatal: Unable to create temporary file '/var/www/gitrepo/cm_main.git/.git/./objects/pack/tmp_pack_XXXXXX': Permission denied
error: pack-objects died of signal 13
error: failed to push some refs to 'linux@192.168.1.128:/var/www/gitrepo/cm_main.git'