• News

All About Git Pretty Stats

1.3KShares
186.2KViews

The raw performance of Git Pretty Stats is very strong when compared to many other tools. New changes, branching, merging, and comparing old versions are all done in a way that makes them faster. The algorithms inside Git Pretty Stats use a lot of information about how real source code file trees are built, how they change over time, and how users get to them.

Git Pretty Stats

You know those cool graphs and statistics that you can get for a repository on github that are so fun to look at? Because of a variety of reasons, not all git repositories are on github, which is a bad thing. This is the PHP tool that you can use to make graphs for your repository. It can be used anywhere, and it looks great.

Features (v0.2.1)

  • Handles multiple repositories
  • Handles bare repositories
  • Statistics
  • Total commits
  • Total contributors
  • Average commits per contributor
  • First commit date
  • Latest commit date
  • Active for (X days)
  • Average commits per day
  • Graphs
  • Commits by date
  • Commits by hour of day
  • Commits by day of week
  • Commits by contributor

COPYRIGHT_CSWAG: Published on https://codingswag.com/git-pretty-stats/ by - on 2022-04-13T16:32:44.711Z

Installation

Install dependencies using Composer.

php composer.phar install

You also need to give permission to the storage folder where you keep your apps.

chmod -R 777 app/storage

To get stats and graphs for the repositories you want, copy them into the folder called "repositories."

cd repositories git clone < repository-url >

You can clone as many as you want into this folder, and you can put them in this one.

Web Server Configuration

  • Apache
  • NginX

Configuration

To manually override configuration, start by copying app/config/git-pretty-stats.php to app/config/local/git-pretty-stats.php. Then you can configure the following in that file:

Custom Directory For Repositories

Set the repositoriesPath to a relative path where you store your repositories.

'repositoriesPath' => '../../repositories'

Specify Each Repository Path

Set the repositoriesPath to an array of paths. They can be either relative or absolute.

'repositoriesPath' => array( '/var/www/web-project', '../test-project' );

E-mail Aliases

Sometimes, a user will add to a repository with different e-mail addresses. If you want to, you can change the aliases yourself. When you want to add commits made by user old@email.com to user new@email.com, you can do this. You can add as many as you want.

'emailAliases' => array( 'user_old@email.com' => 'user_new@email.com' );

Upgrade From 0.3 To 0.4

Some changes have been made to the application since 0.4. It now runs on the Laravel framework, and there have been some changes. All you have to do is move your config.php to app/config/local/git-pretty-stats.php if you already have one. You don't have to follow the installation steps again.

If there is a specific graph or statistic that you are looking for but don't see, please let us know. It's time to make a request!

Share: Twitter | Facebook | Linkedin

Recent Articles

  • Meet The Richest Tech Billionaires In 2023

    News

    Meet The Richest Tech Billionaires In 2023

    During the stock market's sharp drop, the richest tech billionaires lost a total of close to $500 billion. This is more than the market value of all but seven of the S&P 500 companies.

  • Political Opinion Analysis - Understanding Public Sentiment Using Programming Languages

    News

    Political Opinion Analysis - Understanding Public Sentiment Using Programming Languages

    Discover the Power of Political Opinion Analysis with Programming Languages: Learn how Python and R can help shape public discourse, inform policy decisions, and forecast election outcomes. Explore the applications and limitations of political opinion analysis, and delve into the ethical considerations that researchers need to keep in mind. Unlock the potential of political opinion analysis and stay ahead in the world of politics with programming languages.

  • What Is A Dogecoin Faucet?

    News

    What Is A Dogecoin Faucet?

    Dogecoin can be obtained for free using a "doge faucet" that distributes small quantities of doge in exchange for the user performing some action. You are, in essence, trading your time and attention in exchange for the opportunity to earn free Dogecoin.

  • The Importance Of Web Development In Digital Marketing

    News

    The Importance Of Web Development In Digital Marketing

    This article explains the web development process and the role of web design in creating an effective website optimized for SEO and user experience. It also discusses the essential elements of e-commerce web development and how to choose the right web development framework.

  • The Role Of Science And Technology In Our Daily Life

    News

    The Role Of Science And Technology In Our Daily Life

    Due to the role that they play in making life easier, faster, and safer, science and technology are essential to our daily lives. Let's examine the role that science and technology play in the modern world.

  • Technology Is Changing News - An Insight View About The Future Of Media

    News

    Technology Is Changing News - An Insight View About The Future Of Media

    The news industry is evolving quickly and technology is changing news. Laptops and pocket PCs have displaced desktops. Numerous brand-new material sources have been developed and connected via the internet.

  • The Role Of Programming In Architecture

    News

    The Role Of Programming In Architecture

    This article explores the role of programming in architecture, highlighting its impact on collaboration, sustainability, personalized spaces, cost efficiency, and innovative design. Discover how programming is revolutionizing the field of architecture and shaping the future of the industry.

  • Kenya Technology - A Hidden Industry

    News

    Kenya Technology - A Hidden Industry

    The northeastern African country of Kenya is a tiny coastal one. Kenya is praised as a top tourist destination for its tea exports, stunning scenery, and abundant biodiversity. Currently, Kenya technology industry is growing quickly.

  • Best Streaming Services For 2023 That You Should Check Out

    News

    Best Streaming Services For 2023 That You Should Check Out

    Our best recommendations for both on-demand and live streaming services are included in our ranking of the best streaming services for 2023. We've evaluated market leaders like Netflix and Hulu as well as services with a more specialized focus, such as anime streaming portal Crunchyroll and sports-focused fuboTV.

  • Top Travel Apps To Find You Next Destination

  • New Social Media Platforms And Apps That Are Changing The Game

  • The Depths Of AngularJS's Watches

  • Famous Celebrities Who Learn To Code

  • Continuous Integration For Laravel With Jenkins And Git