让Gitlab警告devs在git pull / clone / checkout

时间:2018-03-08 17:05:12

标签: git gitlab hook

我一直在寻找一种方法来警告开发人员关于在git pull或git clone或git checkout上打破更改的回购(任何一个都可以开始)。例如:

$ git pull --rebase origin XXX remote: Counting objects: 67, done. remote: Compressing objects: 100% (50/50), done. remote: Total 67 (delta 20), reused 46 (delta 10) Unpacking objects: 100% (67/67), done. [...] Warning: usage has changed for this project. Please read the release note: xxxx

有没有办法根据标签中的发行说明或通过CHANGELOG.md版本化文件执行此操作?

任何输入都将非常感谢!谢谢:))

0 个答案:

没有答案