gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/push.sh (about) 1 git add . 2 if [ $# == 1 ] 3 then 4 git commit -m "'$1'" 5 else 6 #timestamp=`date +%s` 7 timestamp=`date "+%Y-%m-%d %H:%M:%S"` 8 git commit -m "$timestamp" 9 echo "日志名:$timestamp" 10 fi 11 git config --global core.autocrlf false 12 git push