macos 使用zenTermLite
保持账号密码
下面是保持账号密码1000小时不过期
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=360000'
通过脚本一键部署并检查www权限
这是在zenTermLite工具中快捷命令实现的,其中注意yourproject是你的项目实际的git所在目录
cd /www/wwwroot/yourproject
git reset --hard
git pull
find . \( -type f -o -type d \) -exec chown www {} + -exec chmod 755 {} +