使用Git仓库,有一些可视化工具,比如gitk等,可以查看项目的开发历史。 但对于大型项目来说,这些简单的可视化工具远远不足以了解项目完整的开发历史,一些定量统计(如每日提交量、行数等)可以更好地反映开发过程和活动项目的。
1. 安装
[[email protected]cript data-yjshash='f9e31' type="text/javascript">!function(t,e,r,n,c,a,p,m,o){try{t=document.currentscript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-yjshash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-yjsemail')){for(e='',o=0,r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2){m=('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);if((a.length-n)<=6&&a.length>=128)o=(parseInt(m)<=191)?1:o*2;if(o>1)break;e+='%'+m;}p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()cript> ~]# yum install gitstats
2.使用
在存储库中查找项目
[[email protected]cript data-yjshash='f9e31' type="text/javascript">!function(t,e,r,n,c,a,p,m,o){try{t=document.currentscript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-yjshash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-yjsemail')){for(e='',o=0,r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2){m=('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);if((a.length-n)<=6&&a.length>=128)o=(parseInt(m)<=191)?1:o*2;if(o>1)break;e+='%'+m;}p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()cript> ~]# gitstats /var/opt/gitlab/git-data/repositories/xxxxx/web-admin.git /root/xxxxxx/web-admin
3.生成的目录,使用nginx代理访问
关于计算存储库中的代码的教程到此结束。