簡體   English   中英

命令“git lfs pull origin”返回狀態碼1; 標准錯誤:git:“lfs”不是 git 命令

[英]Command "git lfs pull origin" returned status code 1; stderr: git: 'lfs' is not a git command

在我們的 mac slave 上安裝了 git-lfs 並按照https://medium.com/@priya_talreja/git-lfs-setup-in-jenkins-ee80879007e3的文章。 建立 jenkins 工作

我們收到以下錯誤:

Git LFS initialized.     
xxxx
xxxx
xxxx
Enabling Git LFS pull
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 94723c3732a48a49f41a70248233e52b015632cb # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git lfs pull origin # timeout=10
FATAL: Could not checkout 94723c3732a48a49f41a70248233e52b015632cb
hudson.plugins.git.GitException: Command "git lfs pull origin" returned status code 1:
stdout: 
stderr: git: 'lfs' is not a git command. See 'git --help'. 

在 4 個節點中,一個節點正在工作,其他節點沒有。 [Mac OS X; 版本:10.14.6] git 版本:2.22.0 / 2.21.0 /2.23.0 [錯誤獲取版本:2.22.0 和 2.23.0] git-lfs 版本:2.11.0

在我的 RHEL-7 機器中遇到了同樣的問題,並按照以下步驟使其工作。 (我的機器中缺少 git lfs,使用以下步驟安裝相同)

 $ sudo yum install git

 $ curl -s https://setup.ius.io/ | sudo bash 

 $ sudo yum install git2u

 $ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash

 $ sudo yum install git-lfs

 $ git lfs install

參考鏈接: https://github.com/git-lfs/git-lfs/wiki/Installation

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM