自制更新不断抱怨git fls,但问题出在哪些回购协议上

自制更新不断抱怨git fls,但问题出在哪些回购协议上,git,homebrew,git-lfs,Git,Homebrew,Git Lfs,我似乎再也无法让自制软件正常工作了。我已经试过了。但是它不断地向我抛出这个关于git lfs的错误,我不知道它是从哪里来的 我完全没有想法-这就是我到目前为止所做的: ❯ git lfs install Git LFS initialized. ❯ brew update --verbose Checking if we need to fetch /usr/local/Homebrew... Checking if we need to fetch /usr/local/Homebrew/L

我似乎再也无法让自制软件正常工作了。我已经试过了。但是它不断地向我抛出这个关于git lfs的错误,我不知道它是从哪里来的

我完全没有想法-这就是我到目前为止所做的:

❯ git lfs install
Git LFS initialized.

❯ brew update --verbose
Checking if we need to fetch /usr/local/Homebrew...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Fetching /usr/local/Homebrew...
Updating /usr/local/Homebrew...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to and reset branch 'master'
Your branch is up to date with 'origin/master'.

This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.

Switched to and reset branch 'stable'

This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.

Current branch stable is up to date.

Already up-to-date.

解决办法似乎是

$ cd $(brew --repo)/Library/Taps/homebrew/homebrew-core/.git/hooks
$ git-lfs uninstall

我没有看到任何“错误”。什么不起作用顺便说一句,在我看来答案就在这里:而且这不是一个编程问题,应该是关于AskDifferent或类似的。我已经看了很多次这个问题,你正在链接到。解决方案是转到回购协议并为此启用git lfs。但如前所述,我看不出该问题的回购协议是什么,也看不到在哪里。如果我尝试“brew tap wix/brew”,它失败了(并告诉我一个git lfs即将退出),我假设所讨论的回购协议是brew本身?我正在尝试您的解决方案,但是看起来我甚至没有安装
git-lfs
-bash:git-lfs:command-not found
,可能是git-lfs在你卸载它时对你的git钩子所做的更改没有被还原。这应该被标记为接受的答案(即使这是你自己的问题)
❯ cat Dropbox/Code/Git/hooks/pre-push
#!/bin/sh
command echo $PWD
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.\n"; exit 2; }
git lfs pre-push "$@"
❯ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.
$ cd $(brew --repo)/Library/Taps/homebrew/homebrew-core/.git/hooks
$ git-lfs uninstall