git-weekly-report
v1.0.3
Published
Generate work report from git commits across multiple repos
Maintainers
Readme
Git Report
Automate your git status reports.
git-reportis a lightweight CLI tool that scans your local git repositories and generates a markdown summary of your work for any time period.
Perfect for developers who need to submit daily updates, weekly summaries, or project work logs.
🚀 Features
- Multi-Repo Scanning: Automatically finds all git repositories in a specified directory.
- Customizable Timeframe: Generate reports for the last 7 days, 14 days, or any custom duration.
- Markdown Output: Creates a clean, ready-to-share
git-report.mdfile. - Privacy Focused: Runs entirely locally. No data is sent to the cloud.
- Zero Config: Works out of the box using your global
.gitconfig.
📦 Installation
You can run it directly with npx or install it globally via npm.
Using npx (Recommended)
npx git-reportGlobal Install
npm install -g git-report🛠 Usage
Simply run the command in your terminal:
git-reportBy default, this will:
- Scan for repositories in
~/Documents/projects - Look for commits from the last 7 days
- Generate a file named
weekly-report.mdin the current directory
Custom Options
You can customize the behavior using CLI flags:
| Flag | Description | Default | Example |
|------|-------------|---------|---------|
| --dir | Directory containing your git projects | ~/Documents/projects | --dir ~/Work/dev |
| --days | Number of days to look back | 7 | --days 5 |
| --out | Output filename | weekly-report.md | --out status.md |
Examples
Scan a specific directory for the last 5 days:
git-report --dir ~/my-work-folder --days 5Generate a report for the last month:
git-report --days 30 --out monthly-summary.md📄 Example Output
The generated markdown file looks like this:
# Git Report
**Name:** John Doe
**Email:** [email protected]
**Period:** 2023-10-01 → 2023-10-08
---
## 📦 my-awesome-project (3 commits)
- feat: add login page
- fix: resolve issue with API token
- docs: update README
## 📦 another-repo (1 commits)
- chore: bump dependencies
---
**Total commits:** 4🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License.
