Nor*_*ldt 4 git homebrew git-lfs
我似乎无法再让自制软件正常工作了。已尝试卸载并安装它。但它一直向我抛出这个错误git lfs,我看不到它来自哪里。
我已经没有主意了 - 这就是我到目前为止所做的:
\n\xe2\x9d\xaf git lfs install\nGit LFS initialized.\n\n\xe2\x9d\xaf brew update --verbose\nChecking if we need to fetch /usr/local/Homebrew...\nChecking if we need to fetch /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula...\nChecking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle...\nChecking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...\nChecking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...\nChecking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...\nFetching /usr/local/Homebrew...\nUpdating /usr/local/Homebrew...\nBranch \'master\' set up to track remote branch \'master\' from \'origin\'.\nSwitched to and reset branch \'master\'\nYour branch is up to date with \'origin/master\'.\n\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/post-checkout.\n\nSwitched to and reset branch \'stable\'\n\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/post-checkout.\n\nCurrent branch stable is up to date.\n\nAlready up-to-date.\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x9d\xaf cat .gitconfig\n[core]\n editor = code --wait\n excludesfile = /Users/norfeldt/.gitignore_global\n hooksPath = /Users/norfeldt/Dropbox/Code/Git/hooks\n\n quotepath = false\n # The default value is true.\n\n precomposeunicode = true \n # Only used by Mac OS implementation of Git.\n\n ...\n\n[filter "lfs"]\n clean = git-lfs clean -- %f\n smudge = git-lfs smudge -- %f\n process = git-lfs filter-process\n required = true\n[diff]\n ...\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x9d\xaf cat Dropbox/Code/Git/hooks/pre-push\n#!/bin/sh\ncommand echo $PWD\ncommand -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; }\ngit lfs pre-push "$@"\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x9d\xaf brew doctor\nPlease note that these warnings are just used to help the Homebrew maintainers\nwith debugging if you file an issue. If everything you use Homebrew for is\nworking fine: please don\'t worry or file an issue; just ignore this. Thanks!\n\nWarning: A newer Command Line Tools release is available.\nUpdate them from Software Update in System Preferences or run:\n softwareupdate --all --install --force\n\nIf that doesn\'t show you an update run:\n sudo rm -rf /Library/Developer/CommandLineTools\n sudo xcode-select --install\n\nAlternatively, manually download them from:\n https://developer.apple.com/download/more/.\nRun Code Online (Sandbox Code Playgroud)\n
Nor*_*ldt 13
解决方案似乎是
$ cd $(brew --repo)/Library/Taps/homebrew/homebrew-core/.git/hooks
$ git-lfs uninstall
Run Code Online (Sandbox Code Playgroud)
https://github.com/Homebrew/discussions/discussions/32#discussioncomment-92562