GitScan is a powerful tool designed to analyze Git repositories and provide insights into commit history, contributor statistics, and code change trends.
- Repository Management
- Add local and remote Git repositories
- View repository list
- Analyze repository statistics
- Code Statistics
- Time range filtering (year, quarter, month, week, day)
- Code line count statistics
- Contributor analysis
- Time series trend charts
- Modern Web Interface
- Responsive design
- Real-time data visualization
- Interactive statistical charts
-
Clone the repository:
git clone https://github.com/yourusername/GitScan.git cd GitScan
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # Linux/Mac # or .\venv\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
-
Start the server:
python main.py
-
Open your browser and visit:
http://localhost:8006
-
Add a repository and analyze it:
- Click "Add Repository"
- Enter repository path
- Click "Analyze" to generate statistics
- View detailed statistics by clicking "View Statistics"
GET /api/repositories
: List all repositoriesPOST /api/repositories
: Add a new repositoryGET /api/analyze/{repo_id}
: Analyze a repositoryGET /api/statistics/{repo_id}
: Get repository statistics
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
GitScan 是一个强大的工具,用于分析 Git 仓库并提供提交历史、贡献者统计和代码变更趋势的洞察。
- 仓库管理
- 添加本地和远程 Git 仓库
- 查看仓库列表
- 分析仓库统计信息
- 代码统计
- 时间范围筛选(年、季度、月、周、日)
- 代码行数统计
- 贡献者分析
- 时间序列趋势图
- 现代化 Web 界面
- 响应式设计
- 实时数据可视化
- 交互式统计图表
-
克隆仓库:
git clone https://github.com/yourusername/GitScan.git cd GitScan
-
创建虚拟环境:
python -m venv venv source venv/bin/activate # Linux/Mac # 或 .\venv\Scripts\activate # Windows
-
安装依赖:
pip install -r requirements.txt
-
启动服务器:
python main.py
-
打开浏览器访问:
http://localhost:8006
-
添加仓库并分析:
- 点击"添加仓库"
- 输入仓库路径
- 点击"分析"生成统计信息
- 点击"查看统计"查看详细统计
GET /api/repositories
: 列出所有仓库POST /api/repositories
: 添加新仓库GET /api/analyze/{repo_id}
: 分析仓库GET /api/statistics/{repo_id}
: 获取仓库统计信息
请阅读 CONTRIBUTING.md 了解行为准则以及提交拉取请求的流程。
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。