LoginSignup
0
0

More than 3 years have passed since last update.

[Jenkins] MacOS CatalinaでJenkins経由でのGit LFS Error問題の解消

Last updated at Posted at 2021-01-26

はじめに

Mac CatalinaでJenkinsの構築をした際にハマったポイントとして、
Git LFSが通らない問題があったので忘却録です。
Error内容 : stderr: git-lfs filter-process: git-lfs: command not found

Catalinaからrootユーザーでもアクセス権を得ることができないシステム整合性保護SIP(System Integrity Protection)という機能が邪魔をしていた。
これを解決する為にはMacのリカバリーモードで起動しSIPの無効化をする必要がある。

リカバリーモードで起動

①、電源をOFF
②、cmd + Rを押下しながら電源ON
③、該当のユーザーでログイン
④、画面上部のメニューバーのユーティリティターミナルを選択
⑤、csrutil disableを入力

成功し、SIPが無効化.
Successfully disabled System Integrity Protection. Please restart the machine for the change to take effect.

⑥、 通常ユーザーで再起動し直す
⑦、sudo mount -uw / 入力
⑧、sudo ln -s /usr/local/bin/git-lfs /usr/bin/ 作成

これでGIT LFSが使えるようになってるはずです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0