[root@zabbix-server]# cat git_status.sh #!/bin/bash #function:定时任务统计代码工具 source /etc/profile source /etc/profile.d/rvm.sh source ~/.bash_profile date +%F-%T; cd /data/repositories/baidu_admin.git git_stats generate -o /data/status/baidu_admin/ --language zh_cn cd /data/repositories/baidu_web_v2.git git_stats generate -o /data/status/baidu_web_v2/ --language zh_cn cd /data/repositories/baidu_wxapp.git git_stats generate -o /data/status/baidu_wxapp/ --language zh_cn cd /data/repositories/html5.git git_stats generate -o /data/status/html5/ --language zh_cn
https://blog.51cto.com/liqingbiao/2407268