Git Commit
Time Machine

Advanced Git history manipulation with AI-powered commit message generation in 12 languages

# Install globally
npm install -g gctm
# Generate AI commit message
gctm ai-message --provider openai

Features

Date Manipulation

Change commit dates with precise control over timestamps

Content Editing

Modify commit messages and file contents safely

AI Integration

Generate commit messages with OpenAI, Anthropic, Gemini, and Local AI

Multi-language

Support for 12 languages including English, Turkish, Chinese, and more

Backup System

Automatic backups before any history modification

Sanitization

Remove sensitive data from commit history

Installation

Install via NPM

npm install -g gctm

Verify Installation

gctm --version

Configure AI Providers

# Set your API keys
export OPENAI_API_KEY="your-key"
export ANTHROPIC_API_KEY="your-key"
export GOOGLE_API_KEY="your-key"

Usage

Change Commit Date

# Change the date of the last commit
gctm change-date --date "2024-01-15 10:30:00"
# Change specific commit date
gctm change-date --commit abc123 --date "2024-01-15"

Edit Commit Content

# Edit the last commit message
gctm edit-content --message "New commit message"
# Interactive editing
gctm edit-content --interactive

Generate AI Commit Messages

# Generate with OpenAI
gctm ai-message --provider openai
# Generate with specific language
gctm ai-message --provider claude --language turkish
# Use local AI model
gctm ai-message --provider local --model llama2

Create Backups

# Create a backup before modifications
gctm backup create
# List all backups
gctm backup list
# Restore from backup
gctm backup restore backup-id

Supported Languages

English
Türkçe
Deutsch
Français
Español
Italiano
Português
Nederlands
Русский
日本語
中文
한국어