post-commit tips¶
post-commit hook is a git hooks function that runs when "all commits complete".
git hooks is a hook function that launches custom scripts. (See the official documentation for details.)
Example(Japanese)¶
The following article presents python code to create a post-commit shell script.
【Pythonバージョン管理】git hookを使用してコミットをトリガーにpyproject.tomlとgit tagを更新するスクリプトについて
Code¶
create_post-commit.sh¶
1 |
|
post-commit¶
It can be created by running create_post-commit.sh
.
1 |
|