簡體   English   中英

git lfs 不是命令 Mac OS

[英]git lfs is not a command Mac OS

LFS git: 'lfs' is not a git command. See 'git --help'.

我在mac os上面臨這個問題。 iit lfs 命令在終端上運行良好。 但是,當我從某個腳本運行此命令時,它試圖將 lfs 命令查找到 git 中,這是我目前所理解的。

請幫我解決這個問題。

  • 自制用戶運行
brew install git-lfs
  • MacPorts 用戶運行
port install git-lfs

驗證安裝是否成功:

$ git lfs install
> Git LFS initialized.

有關更多詳細信息,請參閱此文檔: https://help.github.com/en/github/managing-large-files/installing-git-large-file-storage

When using the apple xcode-provided git, in /usr/bin/git , and after installing the git-lfs download from https://git-lfs.github.com/ , you'll find git-lfs was placed in /usr/local/bin/git-lfs 您可能需要將/usr/local/bin添加到 PATH 以便 git 可以找到它。 (我還沒看過 brew 和 macports 做了什么)

暫無
暫無

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

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