Skip to content
All projects

GitHub Commit History Rewriter & Metadata Automator

A multi-threaded DevOps script engineered to automate the rewriting of Git commit history across bulk repositories. It dynamically manipulates commit author metadata using environment filters and force-pushes the sanitized trees concurrently.

Performance & metrics

  • Drastically reduces operation time by processing I/O-bound Git operations in parallel job queues
  • Maintains local memory safety by strictly enforcing active thread limits and purging cloned artifacts immediately post-push
  • Optimized network utilization through parameterized, quiet cloning and targeted REST API polling

Why I built it

Managing over 130 repositories means manual maintenance becomes a major bottleneck. When I needed to migrate committer emails and author names across my entire portfolio, doing it manually repository-by-repository was entirely unscalable. I engineered this tool to interface with the GitHub REST API and parallelize the git filter-branch process, turning hours of tedious, error-prone Git work into a rapid, automated background operation.

Architecture & decisions

The architecture utilizes PowerShell's Start-Job background runspaces to achieve concurrency with a strictly controlled thread pool (capped at 5 concurrent jobs to prevent I/O bottlenecks and local resource exhaustion). It parses the GitHub REST API to ingest repository metadata, dynamically provisions a temporary ephemeral workspace, clones the targets, and injects custom GIT_COMMITTER and GIT_AUTHOR environment variables directly into the git filter-branch execution. Finally, it executes a forced push of the mutated commit history and aggressively cleans up the local filesystem.

Key features

  • Concurrent multi-threading with strict job pooling and queue management
  • Automated GitHub REST API interaction for bulk repository ingestion
  • Deep Git tree rewriting via aggressive git filter-branch environment injection
  • Automated forced propagation of updated branches and tags to the remote origin
  • Ephemeral I/O workspace management with strict post-execution cleanup routines

Technical review

This tool is a practical demonstration of aggressive, system-level infrastructure automation. Rewriting Git history (filter-branch and force-pushing) carries inherent risks; this script handles those risks with predictable, isolated thread execution and robust error handling. It highlights my ability to write no-nonsense automation that interfaces directly with underlying version control systems and cloud APIs.

Bots & Automation

Yt-dlp & FFmpeg Telegram Media Archiver Bot

An asynchronous Rust-based Telegram bot engine that orchestrates yt-dlp and FFmpeg subprocesses to securely download, compress, and serve media from X (Twitter) and YouTube.

  • Rust
  • Shell
  • Tokio
  • +5

Bots & Automation

Lain Discord Bot (Rust)

A high-performance, asynchronous Discord bot written in Rust, featuring targeted message delivery and strict RBAC (Role-Based Access Control) for administrators.

  • Rust
  • Serenity
  • Discord API

Bots & Automation

Telegram Lein Bot

An automated Telegram assistant equipped with custom command trees and a competitive, state-tracking trivia module.

  • Python
  • Aiogram
  • Telegram API

Need something similar?

I can build a system like this for you, too.

Describe your project in a few sentences, and we'll work out the right approach and an estimated scope together.