if test $1 = 'aaa' then echo '代码更新:' $(date '+%Y-%m-%d %H:%M:%S') cd /www/wwwroot/car git pull origin master chown -R www:www ./ chmod -R 755 ./ echo "" fi
1.永久存储git config --global credential.helper store 2.临时存储git config –global credential.helper cache 3.设置临时存储过期时间git config credential.helper 'cache –timeout=3600'