git-lfs filter-process: git-lfs: command not found

最初是认为网络不稳定,或者git版本过低。
开始自己的git版本是1.20,后续升级为1.32仍旧存在这个问题。
之后安装了git-lfs,问题解决。不知道为什么其他同事没有出现该问题。

brew install git-lfs

异常信息:
DEBUG: /Users/yangxing/PycharmProjects/release/bazel/tsingj_git_worker.bzl:63:10: ctx attr commit = & real comit = aa28f8190ec91d6b049aea8cc2f170e9ea74ed13
ERROR: An error occurred during the fetch of repository :
Traceback (most recent call last):
File “/Users/yangxing/PycharmProjects/release/bazel/tsingj_repo.bzl”, line 123, column 30, in _git_repository_implementation
update = _clone_or_update(ctx, realcommit)
File “/Users/yangxing/PycharmProjects/release/bazel/tsingj_repo.bzl”, line 32, column 20, in clone_or_update
git
= git_repo(ctx, directory, realcommit)
File “/Users/yangxing/PycharmProjects/release/bazel/tsingj_git_worker.bzl”, line 95, column 12, in git_repo
_update(ctx, git_repo)
File “/Users/yangxing/PycharmProjects/release/bazel/tsingj_git_worker.bzl”, line 108, column 10, in _update
reset(ctx, git_repo)
File “/Users/yangxing/PycharmProjects/release/bazel/tsingj_git_worker.bzl”, line 152, column 9, in reset
_git(ctx, git_repo, “reset”, “–hard”, git_repo.reset_ref)
File “/Users/yangxing/PycharmProjects/release/bazel/tsingj_git_worker.bzl”, line 173, column 15, in _git
_error(ctx.name, start + list(args), st.stderr)
File “/Users/yangxing/PycharmProjects/release/bazel/tsingj_git_worker.bzl”, line 194, column 9, in _error
fail(“error running ‘%s’ while working with @%s:\n%s” % (command_text, name, stderr))
Error in fail: error running ‘git reset --hard aa28f8190ec91d6b049aea8cc2f170e9ea74ed13’ while working with @:
git-lfs filter-process: git-lfs: command not found
fatal: 远端意外挂断了

参考:

你可能感兴趣的:(服务器,git,github)