Coder Social home page Coder Social logo

statisticgit's Introduction

统计 git 代码提交量

作用

  • 自动拉取目标仓库的所有分支
  • 统计仓库所有分支的数据
  • 输出 xls 表格

表格

一共会输出 4 张表,分别是

  • 项目代码统计
  • 项目提交统计
  • 个人代码统计
  • 个人提交统计

具体的区别可以参考表格内容和代码。

使用

配置

主要是修改 config 下的 config.py 文件。

  • git_paths
    • git 仓库路径
  • dir_path
    • 拉取仓库要放置的文件夹,需要提前创建,这里默认是 git 文件夹
  • git_command
    • 所要执行的 git 命令
  • 其他

运行

主要是运行 main.py ,一共有两个函数

  • clone_update_git
    • clone 所有配置的仓库和该仓库所有的分支
    • 目前并不提供 update 功能
  • statis_data
    • 根据 git 命令统计数据,并输出 xls 文件

statisticgit's People

Contributors

benpaodewoniu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.