10000 GitHub - git-truck/git-truck at v1.7.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Git repository visualizations, cumulative contribution statistics and more. Run `npx -y git-truck` to try Git Truck today!

License

Notifications You must be signed in to change notification settings

git-truck/git-truck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Truck 🚛 · GitHub license Git Truck on NPM

Demo

Git-Truck provides you with a truckload of visualizations for your git repository, and helps you find out if your project has a good truck factor:

The files in your system where you have a single contributor (i.e., truck-factor = 1) image
You can see how the various developers contribute to your codebase image
You can determine which parts of the system that are most often changed image

What makes Git Truck different?

  • Private by design
  • Works offline
  • Git provider agnostic - Works with any Git repository
  • No tracking, no ads, no data mining, no analytics, no cloud, no servers

To use Git Truck, you will need to have the following programs installed:

  • Node.js 16.13 or newer
  • npm 6.14 or newer
  • git 2.29 or newer

To check if these programs are installed, and what version you have, run node --version, npm --version and git --version. If any of these are not installed on your system, or are just very old, they can be installed from the links above. Note that npm is installed along with node.

  1. Within a git repository, or a directory containing git repositories, run the command npx -y git-truck.
  2. The application will now open in your default browser.

Git Truck is part of a research study, so please fill out our short survey after trying out the tool. Thanks!

Please open an issue here where you describe your problem. Please include git version, node version, npm version, operating system, and an image of the problem would be great too!

If you have any suggestions about new features, or things that you think should be different, also feel free to open an issue.

Run npx git-truck in the root of a git repository, that you want to visualize:

npx git-truck [args]
arg description default value
--path path to a folder or a git repository current directory
--log output log level. See here for values -
--port port to use for the program 3000
--invalidate-cache bypass analyzer cache manually -
--headless run the program without opening the browser -

Note: Using --invalidate-cache will cause the analyzer to run every time the client talks to the server.

You can add a truckconfig.json file to the root of your project, where you can define the arguments you want. Additionally you can define which git-aliases should be considered as the same person using unionedAuthors. If provided, the first name in the array is used as the name of the person. You can also define files to ignore.

Example:

{
  "log": "debug",
  "branch": "main",
  "unionedAuthors": [
    ["Bob", "Bobby Bob"],
    ["Alice", "aliiii", "alice alice"]
  ],
  "hiddenFiles": ["package-lock.json", "*.bin", "*.svg"],
  "invalidateCache": true
}

Very large repositories

If the repository you intend to analyze is very large (300k+ commits), we recommend to increase the memory available to nodejs by setting the environment variable NODE_OPTIONS to --max-old-space-size=4096 before starting Git Truck, otherwise analyzation might crash.

If your repository has more than 1 million commits, it is unlikely that Git Truck can successfully analyze it, even with higher memory limit.

Star History

Star History Chart

About

Git repository visualizations, cumulative contribution statistics and more. Run `npx -y git-truck` to try Git Truck today!

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 9

0