In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "git_stats web code graphic statistics tools how to use", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "git_stats web code graphic statistics tools how to use" it!
one。 Brief introduction
One of the warehouse code statistics tools, according to the git submitter, the number of submissions, the number of modified files, the number of lines of code, the amount of comments in the time dimension statistics, but also according to each file type for simple statistics, very convenient.
Although it is not reliable to measure a project or programmer in terms of the number of lines of code, trends are statistically helpful to technical managers! GitStats is such a tool that generates the following statistics and compares them in graphical form.
Regular statistics: total number of files, number of lines, number of submissions, number of authors. Activity: daily hourly, weekly daily, weekly hourly, annual monthly, annual delivery volume. Number of authors: list all authors (number of submissions, date of first submission, date of last submission), broken down by month and year. Number of files: by date and by extension. Number of rows: by date.
two。 Install ruby
1. Refer to the documentation to install ruby-2.4
You can also use ssc to install ruby with one click
Yum-y install gitgit clone https://github.com/goodboy23/shell-script-collectioncd shell-script-collection./ssc.sh install ruby-2.4source / etc/profile
two。 Verify installation
Ruby-v
3. Add ruby domestic Aliyun warehouses to improve access speed, and delete warehouses visited abroad
Gem sources-lgem sources-a https://mirrors.aliyun.com/rubygems/-- remove https://rubygems.org/gem sources-l III. Configure git_stats
1. Installation
Gem install git_stats
two。 Install locate
Yum install mlocate-y
Updatedb
3. Add git_stats Chinese support, directory under config/locales/
Find /-name 'git_stats'
Cd / usr/local/ruby/lib/ruby/gems/2.4.0/gems/git_stats-1.0.17/config/localescp zh_tw_default.yml zh_default.yml
Change the top zh_tw to zh_cn and remain unchanged.
Vim zh_default.yml
Change the top zh_tw to zh_cn and remain unchanged.
Vim zh.yml
Update the next index
Updatedb
4. Specify to generate an analysis report for the specified project. Download a project here at will, depending on which one you want to count, and replace it with your own
Git clone https://github.com/goodboy23/shell-script-collectioncd shell-script-collection
5.Muso specifies the output directory, which will output web page files
Git_stats generate-o / data/status7/-- language zh_cn
four。 Display the web page through nginx
1. Install nginx
Cd shell-script-collection./ssc.sh install nginx-1.8
two。 Configure nginx
Vim / usr/local/nginx/conf/nginx.conf
Server {listen 8888; server_name localhost; location / {root / data/status7; index index.html index.htm;}}
3. Start nginx
Nginx-t
Nginx
4. Browse and access data, this can only be a single project, if multiple projects, you need to configure multiple browsing paths
Thank you for your reading, the above is the content of "how to use git_stats web code graphical statistical tools". After the study of this article, I believe you have a deeper understanding of how to use git_stats web code graphical statistical tools, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.