【问题标题】:Failed to run git clone when using psexec使用 psexec 时无法运行 git clone
【发布时间】:2020-01-01 13:28:21
【问题描述】:

我正在尝试使用 psexec 从远程机器运行 git clone。 当我从本地机器运行它时,它工作正常。

git clone -b develop --single-branch http://server:8080/git/root/AAA.git C:\GIT_Repository\AAA

但是当使用 psexec 运行相同的程序时,它似乎跳过了文件的下载,并且大部分文件的大小为 1kb(当我运行 git pull 时,我得到的一切都是最新的)

我运行这个:

c:\PsTools\2.44\psexec.exe \\SERVER -u plm\user -p *** git clone -b develop --single-branch http://server:8080/git/root/AAA.git C:\GIT_Repository\AAA

这是详细的输出

Cloning into 'C:\GIT_Repository\AAA'...
POST git-upload-pack (163 bytes)
remote: Counting objects: 17, done
remote: Finding sources: 100% (18410/18410)
remote: Getting sizes: 100% (7842/7842)
remote: Compressing objects: 100% (246952/246952)
remote: Total 18410 (delta 9705), reused 18355 (delta 9683)
Receiving objects: 100% (18410/18410), 59.08 MiB | 33.83 MiB/s, done.
Resolving deltas: 100% (9705/9705), done.
Checking out files: 100% (1383/1383), done.
git exited on server with error code 0.

有什么想法吗?

【问题讨论】:

    标签: git git-clone psexec


    【解决方案1】:

    我安装了最新版本的 GIT 后问题解决了 :-)

    【讨论】:

      猜你喜欢
      • 2022-01-10
      • 2018-05-31
      • 2020-07-27
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      • 2022-07-03
      • 1970-01-01
      • 2015-01-23
      相关资源
      最近更新 更多