我试图在git push完成后运行一个命令,但它没有运行
我试着用post-receive,post-update和pre-push
做过预推
一些信息:
git版本2.17.1
路径文件:testProject/..git/hooks/
Ubuntu 18.04.3 LTS
代码示例:
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
echo "test" > /home/Darck/Desktop/testProject/test.txt
# exec git update-server-infohttps://stackoverflow.com/questions/58021668
复制相似问题