Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我gitlab-ce的服务器上运行一个副本,我想做一个自定义pre-receive钩子,在提交的代码中搜索 TODO,如果找到任何 TODO,则不允许推送。如果由于我在<project_name>.git目录中而不是在实际代码目录中而无法访问 git 命令,如何访问提交的代码/文件?
gitlab-ce
pre-receive
<project_name>.git
非常感谢!