git - 将 git 钩子(Hook)添加到谷歌云存储库

标签 git google-cloud-platform githooks

谷歌云附带的东西之一是 git repos .是否可以向这个 repo 添加 Hook ?我想要传入的推送,但我不知道如何访问 .git/hooks

最佳答案

如果您将代码托管在 git-hub/bitbucket 上,就可以做到这一点.然后你就可以使用 git 钩子(Hook)了。

Google source 有这个功能(对象更改通知)而不是 hooks: https://cloud.google.com/storage/docs/object-change-notification

关于git - 将 git 钩子(Hook)添加到谷歌云存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37818346/

相关文章:

git - diff _both_ git commit 的 parent 同时提交

git - SVN-Git 迁移 : clean-git branch error

redirect - GCP - 静态托管 - 重定向到/index.html

google-cloud-platform - Google Cloud 转发规则 http -> https 使用 terraform

git - 当我从客户端删除公钥文件时,Gogs 抛出 "Permission denied"错误

git 修改后的 git merge 冲突 - "Your branch and ' origin/master' 已经分歧”

docker - 将新节点池添加到GKE集群

git - 忽略prepare-commit-msg git hook的 merge 提交

bash - 从通过 post-receive 钩子(Hook)创建的 ssh session 调用时,导出不起作用

gitlab-ci - 用于检查代码格式的 gitlab CI 管道