0

git 命令错误

我在我的 LAN 服务器上创建了一个 Bonobo git 服务器。基本命令“拉”或“推”没有问题。但是当我尝试跟踪大文件并将其推送到服务器时,它失败并显示以下错误消息。

我应该如何设置 git 服务器?

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin develop:develop
git: 'credential-wincerd' is not a git command. See 'git --help'.

The most similar command is
    credential-wincred

Pushing to http://IP/Git/GUI.git

Git LFS: (0 of 2 files) 0 B / 5.57 MB                                          
batch response: Repository or object not found: http://IP/Git/GUI.git/info/lfs/objects/batch
Check that it exists and that you have proper access to it

error: failed to push some refs to 'http://IP/Git/GUI.git'
Completed with errors, see above.
4

1 回答 1

1

似乎在您的一个 git 配置文件(可能是全局配置文件)中有一个错字。

而不是打字

git config --global credential.helper wincred

你可能输入了

git config --global credential.helper wincerd

因此,只需找到包含字符串“wincerd”的 git 配置文件并修复错字即可。

于 2018-05-05T16:59:13.920 回答