以下のメッセージが出た場合の回避策をここにメモします。
% git add --all git-lfs filter-process: git-lfs: command not found fatal: the remote end hung up unexpectedly
回避策
mac の場合は以下のコマンドで回避できました。
% brew install git-lfs % git lfs install % git lfs install --system
実行結果
% brew install git-lfs git lfs install git lfs install --system Updating Homebrew... ==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:a5ef040e054444a0eb2cbcc1032fed14702dfbe2e55b25e609f3ce643f23c4ee ######################################################################### 100.0% ==> Pouring portable-ruby-3.3.3.el_capitan.bottle.tar.gz ==> Homebrew collects anonymous analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics have been recorded yet (nor will be during this `brew` run). Installing from the API is now the default behaviour! You can save space and time by running: brew untap homebrew/core brew untap homebrew/cask ==> Downloading https://formulae.brew.sh/api/formula.jws.json ######################################################################### 100.0% ==> Downloading https://formulae.brew.sh/api/cask.jws.json ######################################################################### 100.0% ==> Downloading https://formulae.brew.sh/api/formula_tap_migrations.jws.json ######################################################################### 100.0% ==> Downloading https://formulae.brew.sh/api/cask_tap_migrations.jws.json ######################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/git-lfs/manifests/3.5.1 ######################################################################### 100.0% ==> Fetching git-lfs ==> Downloading https://ghcr.io/v2/homebrew/core/git-lfs/blobs/sha256:62c2e70ba2 ######################################################################### 100.0% ==> Pouring git-lfs--3.5.1.sonoma.bottle.tar.gz ==> Caveats Update your git config to finish installation: # Update global git config $ git lfs install # Update system git config $ git lfs install --system ==> Summary 🍺 /usr/local/Cellar/git-lfs/3.5.1: 79 files, 13.0MB ==> Running `brew cleanup git-lfs`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> `brew cleanup` has not been run in the last 30 days, running now... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). Removing: /Users/test/Library/Caches/Homebrew/anyenv_bottle_manifest--1.1.3... (4.3KB) Removing: /Users/test/Library/Caches/Homebrew/autoconf_bottle_manifest--2.71... (5.6KB) Removing: /Users/test/Library/Caches/Homebrew/autoconf--2.71... (948.6KB) Removing: /Users/test/Library/Caches/Homebrew/bdw-gc_bottle_manifest--8.0.4_2... (4.5KB) Removing: /Users/test/Library/Caches/Homebrew/bdw-gc--8.0.4_2... (513.9KB) Removing: /Users/test/Library/Caches/Homebrew/crystal_bottle_manifest--1.0.0_2... (6.9KB) Removing: /Users/test/Library/Caches/Homebrew/crystal_bottle_manifest--1.1.1... (9.6KB) Removing: /Users/test/Library/Caches/Homebrew/crystal--1.1.1... (20.2MB) Removing: /Users/test/Library/Caches/Homebrew/crystal-icr_bottle_manifest--0.8.0-1... (4.8KB) Removing: /Users/test/Library/Caches/Homebrew/crystal-icr--0.8.0... (1.6MB) Removing: /Users/test/Library/Caches/Homebrew/gdbm_bottle_manifest--1.20... (4.3KB) Removing: /Users/test/Library/Caches/Homebrew/gdbm--1.20... (221KB) Removing: /Users/test/Library/Caches/Homebrew/gettext_bottle_manifest--0.21... (8.1KB) Removing: /Users/test/Library/Caches/Homebrew/gettext--0.21... (8.5MB) Removing: /Users/test/Library/Caches/Homebrew/gmp_bottle_manifest--6.2.1... (5.4KB) Removing: /Users/test/Library/Caches/Homebrew/gmp--6.2.1... (1MB) Removing: /Users/test/Library/Caches/Homebrew/libevent_bottle_manifest--2.1.12... (5.7KB) Removing: /Users/test/Library/Caches/Homebrew/libevent--2.1.12... (684.4KB) Removing: /Users/test/Library/Caches/Homebrew/libidn2_bottle_manifest--2.3.2... (6.6KB) Removing: /Users/test/Library/Caches/Homebrew/libidn2--2.3.2... (255.4KB) Removing: /Users/test/Library/Caches/Homebrew/libunistring_bottle_manifest--0.9.10... (7KB) Removing: /Users/test/Library/Caches/Homebrew/libunistring--0.9.10... (1.4MB) Removing: /Users/test/Library/Caches/Homebrew/libyaml_bottle_manifest--0.2.5... (4.7KB) Removing: /Users/test/Library/Caches/Homebrew/libyaml--0.2.5... (108.7KB) Removing: /Users/test/Library/Caches/Homebrew/llvm@11_bottle_manifest--11.1.0_2... (8.2KB) Removing: /Users/test/Library/Caches/Homebrew/llvm@11--11.1.0_2... (360.5MB) Removing: /usr/local/Cellar/m4/1.4.18... (13 files, 672.3KB) Removing: /Users/test/Library/Caches/Homebrew/m4_bottle_manifest--1.4.18-1... (4.2KB) Removing: /Users/test/Library/Caches/Homebrew/m4_bottle_manifest--1.4.19... (5.2KB) Removing: /Users/test/Library/Caches/Homebrew/m4--1.4.19... (257.8KB) Removing: /Users/test/Library/Caches/Homebrew/mono_bottle_manifest--6.12.0.122... (14.6KB) Removing: /Users/test/Library/Caches/Homebrew/mono--6.12.0.122... (154.9MB) Removing: /Users/test/Library/Caches/Homebrew/mpdecimal_bottle_manifest--2.5.1... (4.2KB) Removing: /Users/test/Library/Caches/Homebrew/mpdecimal--2.5.1... (548.3KB) Removing: /Users/test/Library/Caches/Homebrew/openssl@1.1_bottle_manifest--1.1.1k... (4.8KB) Removing: /Users/test/Library/Caches/Homebrew/openssl@1.1_bottle_manifest--1.1.1l... (6.1KB) Removing: /Users/test/Library/Caches/Homebrew/openssl@1.1--1.1.1l... (5.2MB) Removing: /Users/test/Library/Caches/Homebrew/pcre_bottle_manifest--8.45... (5.2KB) Removing: /Users/test/Library/Caches/Homebrew/pcre--8.45... (1.8MB) Removing: /Users/test/Library/Caches/Homebrew/pyenv_bottle_manifest--2.0.1... (16.6KB) Removing: /Users/test/Library/Caches/Homebrew/pyenv_bottle_manifest--2.0.6... (18.7KB) Removing: /Users/test/Library/Caches/Homebrew/pyenv--2.0.6... (636.1KB) Removing: /Users/test/Library/Caches/Homebrew/python@3.9_bottle_manifest--3.9.5... (12.5KB) Removing: /Users/test/Library/Caches/Homebrew/python@3.9_bottle_manifest--3.9.6... (15.4KB) Removing: /Users/test/Library/Caches/Homebrew/python@3.9--3.9.6... (13.6MB) Removing: /Users/test/Library/Caches/Homebrew/sqlite_bottle_manifest--3.36.0... (4.7KB) Removing: /Users/test/Library/Caches/Homebrew/sqlite--3.36.0... (2MB) Removing: /Users/test/Library/Caches/Homebrew/wget_bottle_manifest--1.21.1_1... (7.4KB) Removing: /Users/test/Library/Caches/Homebrew/wget--1.21.1_1... (1.4MB) ==> Autoremoving 1 unneeded formula: tcl-tk Uninstalling /usr/local/Cellar/tcl-tk/8.6.11_1... (3,041 files, 51.6MB) Removing: /Users/test/Library/Caches/Homebrew/descriptions.json... (319.3KB) Removing: /Users/test/Library/Logs/Homebrew/pyenv... (64B) Removing: /Users/test/Library/Logs/Homebrew/wget... (64B) Removing: /Users/test/Library/Logs/Homebrew/libidn2... (64B) Removing: /Users/test/Library/Logs/Homebrew/libunistring... (64B) Removing: /Users/test/Library/Logs/Homebrew/crystal... (64B) Removing: /Users/test/Library/Logs/Homebrew/gettext... (64B) Removing: /Users/test/Library/Logs/Homebrew/m4... (64B) Removing: /Users/test/Library/Logs/Homebrew/python@3.9... (2 files, 4.5KB) Removing: /usr/local/lib/python3.9/site-packages/__pycache__/easy_install.cpython-39.pyc... (354B) Removing: /usr/local/lib/python3.9/site-packages/__pycache__/sitecustomize.cpython-39.pyc... (1.4KB) Pruned 2 symbolic links and 6 directories from /usr/local Updated Git hooks. Git LFS initialized. warning: current user is not root/admin, system install is likely to fail. warning: error running /Library/Developer/CommandLineTools/usr/libexec/git-core/git 'config' '--includes' '--system' '--replace-all' 'filter.lfs.required' 'true': 'error: could not lock config file /etc/gitconfig: Permission denied' 'exit status 255' Run `git lfs install --force` to reset Git configuration.