Home > Q&A > body text
apache 用户已经有相应的执行权限了在服务器上使用 sudo -u apache cd ... && git pull 也已经可以拉取到更新但是通过 Web 访问时就出问题了
sudo -u apache cd ... && git pull
当版本库是最新时,能够得到命令执行结果 Already up-to-date.但是当版本库不是最新时(有更新),得不到任何的执行结果反馈,命令没能执行成功
Already up-to-date.
我是通过 https://username:password@git.oschina.net/username/project.git 拉取更新的
https://username:password@git.oschina.net/username/project.git