git-hooks:Git钩子示例存储库

时间:2021-03-27 02:21:31
【文件属性】:
文件名称:git-hooks:Git钩子示例存储库
文件大小:60KB
文件格式:ZIP
更新时间:2021-03-27 02:21:31
Shell Gradle Git挂钩示例 这个例子的目的是展示git hooks的用法。 由于git钩子由于位于git忽略的.git文件夹中而无法被推送,因此预提交脚本钩子位于hooks文件夹中。 为了使预提交git hook工作正常,请将hooks/pre-commit脚本复制到.git/hooks文件夹中。 要跳过预提交挂钩,请使用: $ git commit -n ...rest of options
【文件预览】:
git-hooks-master
----gradlew.bat(3KB)
----gradlew(6KB)
----hooks()
--------pre-commit(652B)
----gradle()
--------wrapper()
----src()
--------test()
----.gitignore(2KB)
----README.md(419B)
----settings.gradle(47B)
----build.gradle(285B)

网友评论