Skip to content

Files

Latest commit

f2f79d8 · Mar 19, 2024

History

History

.githooks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 19, 2024
Mar 19, 2024
Mar 19, 2024

githooks

このディレクトリは本来であれば、.git/hooks/ に配置するディレクトリです。

.git は、リポジトリの設定を管理するディレクトリであり、バージョン管理対象外です。

そのため、.githooks/の内容を.git/hooks/へコピーすることで、リポジトリのGit操作に適用しています。

以下のコマンドは、mint setupの一部として実行されます。

$ cp -r .githooks .git/hooks

$ chmod -R +x .git/hooks

参考

https://git-scm.com/docs/githooks

https://www.farend.co.jp/blog/2020/04/git-hook/