admin 在window环境下添加的sh文件,在Linux环境拉取后,默认是没有执行权限的。 添加执行权限 git update-index --chmod=+x backup.sh 然后提交、push,Linux环境拉去后,就有执行权限了。