不会写shell,求助,
能只执行几条git 指令
cd /home/xx
git add .
git commit -m '时间,如2016-03-03 12:0:03'
git push origin master
已解决
cd /hmoe/xx
backtime=`date +%Y%m%d%H%M%S`
git add .
git commit -m bk_${backtime}
git push origin master
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我用php写了个类似的脚本。