git-secrets削除後のエラーの解決策

エラーメッセージ

Git: git: ‘secrets’ is not a git command. See ‘git –help’.

原因

git-secrets がインストールされていないが、git-secrets を利用する設定だけ残ってしまっている

解決策

git-secrets を利用する設定を削除する

1
2
3
4
rm .git/hooks/commit-msg
rm .git/hooks/pre-commit
rm .git/hooks/prepare-commit-msg
git config --global --unset-all commit.template

参考

git secrets を削除する時の注意

git-secrets削除後のエラーの解決策

https://reon777.com/2021/02/15/git-secrets-error/

Author

reon777

Posted on

2021-02-16

Updated on

2026-06-30

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×