git 钩子

创建新的仓库 cd /srv sudo git init --bare test.git # 初始化空的 Git 仓库于 /srv/test.git/ 进入钩子目录 cd test.git/hooks sudo vim post-receive sudo chmod +x post-receive 输入如下内容html #!/bin/bash echo "------------ hello, w
相关文章
相关标签/搜索