
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
π Git Commit Time Machine - Comprehensive Git history manipulation tool with AI-powered commit message generation. Change commit dates, edit content, manage sensitive data, and generate creative commit messages using OpenAI, Anthropic, Google Gemini, and
π Git Commit Time Machine v1.2.0 - Comprehensive Git history manipulation tool with AI-powered commit message generation. Change commit dates, edit content, manage sensitive data, and generate creative commit messages using OpenAI, Anthropic, Google Gemini, and Local AI models.
π― Version 1.2.0 Highlights:
# Install globally
npm install -g gctm
# Or install locally
npm install gctm
# Verify installation
gctm --version
# Clone the project
git clone https://github.com/ersinkoc/git-commit-time-machine.git
# Change to project directory
cd git-commit-time-machine
# Install dependencies
npm install
# Install globally
npm install -g .
# Download the latest release
wget https://github.com/ersinkoc/git-commit-time-machine/archive/refs/tags/latest.tar.gz
# Extract and install
tar -xzf latest.tar.gz
cd GitCommitTimeMachine-*
npm install -g .
For AI-powered commit messages, you'll need API keys:
# OpenAI (for GPT-5, GPT-4.1 models)
export OPENAI_API_KEY="your-openai-api-key"
# Anthropic Claude (for Claude 4.5, Claude 4.1 models)
export ANTHROPIC_API_KEY="your-anthropic-api-key"
# Google Gemini (for Gemini 2.5 models)
export GOOGLE_API_KEY="your-google-api-key"
# Local AI (via Ollama - requires installation)
# No API key needed, runs locally
# Redate commits within a specific date range
gctm redate --start "2023-01-01" --end "2023-01-30"
# Include backup
gctm redate --start "2023-01-01" --end "2023-01-30" --backup
# Interactive mode
gctm redate --interactive
# Edit a specific commit message
gctm edit-message --commit "a1b2c3d" --message "New commit message"
# Interactive mode
gctm edit-message --interactive
# Replace a specific pattern
gctm edit-content --commit "a1b2c3d" --pattern "API_KEY" --replacement "***HIDDEN***"
# Interactive mode
gctm edit-content --interactive
# Clean sensitive data
gctm sanitize --patterns "email,apiKeys" --replacement "***REDACTED***"
# Interactive mode
gctm sanitize --interactive
# Create backup
gctm backup create --description "Pre-operation backup"
# List backups
gctm backup list
# Restore backup
gctm backup restore <backupId>
# Delete backup
gctm backup delete <backupId>
# Generate AI commit messages (requires API key)
export OPENAI_API_KEY="your-openai-api-key"
# Basic AI generation
gctm ai-generate
# Generate in Turkish with humorous style
gctm ai-generate --language tr --style humorous
# Interactive selection and application
gctm ai-generate --interactive
# Generate with additional context
gctm ai-generate --context "Fixed critical authentication bug"
# Improve existing commit message
gctm ai-generate --current-message "fix bug" --style descriptive
# Show current AI configuration
gctm ai-config --show
# Set API key and provider
gctm ai-config --api-key "your-key" --provider openai
# Configure default language and style
gctm ai-config --language tr --style humorous
# Test AI connection
gctm ai-config --test
# Set model and creativity level (2025 models)
gctm ai-config --model gpt-5-main --temperature 0.8
AI Providers Supported:
Languages Available:
Commit Message Styles:
const { GitCommitTimeMachine } = require('./src/index.js');
const gctm = new GitCommitTimeMachine();
// Redate commits
await gctm.redateCommits({
startDate: '2023-01-01',
endDate: '2023-01-30',
createBackup: true,
preserveOrder: true,
filter: (commit) => commit.author === 'john.doe@example.com'
});
// Edit content
await gctm.editCommitContent({
commitId: 'a1b2c3d',
replacements: [
{ pattern: /API_KEY=.*/g, replacement: 'API_KEY=***REDACTED***' }
],
createBackup: true
});
// Sanitize history
await gctm.sanitizeHistory({
patterns: [
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g, // Email
/([A-Z_]+_?(KEY|TOKEN|SECRET|PASSWORD|PASS|API_KEY|SECRET_KEY)=)([^\s\n]+)/g // API keys
],
replacement: '***HIDDEN***',
createBackup: true
});
// Initialize AI assistant
await gctm.initializeAI();
// Generate AI commit message
const aiResult = await gctm.generateAICommitMessage({
language: 'tr',
style: 'humorous',
context: 'Fixed critical bug in authentication system'
});
if (aiResult.success) {
console.log('AI Suggestions:', aiResult.suggestions);
// Apply the first suggestion
await gctm.applyAICommitMessage(aiResult.suggestions[0], true);
}
// Update AI configuration
await gctm.updateAIConfig({
apiKey: 'your-api-key',
provider: 'openai',
model: 'gpt-4',
language: 'en',
style: 'conventional'
});
redateCommits(options): Redates commit timestampseditCommitMessage(options): Edits commit messageeditCommitContent(options): Edits commit contentsanitizeHistory(options): Sanitizes repository historylistBackups(): Lists available backupsrestoreBackup(backupId): Restores a backupredateCommits:
startDate: Start date (YYYY-MM-DD)endDate: End date (YYYY-MM-DD)filter: Commit filtering functioncreateBackup: Create backuppreserveOrder: Preserve ordereditCommitMessage:
commitId: Commit ID to editnewMessage: New commit messagecreateBackup: Create backupeditCommitContent:
commitId: Commit ID to editreplacements: Array of replacement patternscreateBackup: Create backupconst gctm = new GitCommitTimeMachine();
// Hide API keys in .env file
const result = await gctm.contentEditor.hideApiKeys(
'./.env',
['API_KEY', 'SECRET_KEY', 'DATABASE_URL'],
'***HIDDEN***'
);
console.log(result);
const gctm = new GitCommitTimeMachine();
const commits = await gctm.gitProcessor.getCommits();
// Which days commits were made
const dayStats = gctm.dateManager.analyzeCommitDays(commits);
console.log(dayStats);
// Which hours commits were made
const hourStats = gctm.dateManager.analyzeCommitHours(commits);
console.log(hourStats);
const content = await fs.readFile('config.js', 'utf8');
const sensitiveData = gctm.contentEditor.detectSensitiveData(content);
console.log('Detected sensitive data:', sensitiveData);
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details
Q: How can I restore changed history?
A: Use gctm backup restore <backupId> to restore a previously created backup.
Q: Can this be used in shared repositories?
A: Yes, but be cautious. After making changes, you may need to git push --force to reflect changes to others.
Q: Which file formats can be edited? A: All text-based files (.js, .py, .json, .env, .md, etc.) can be edited.
Q: Where are backups stored?
A: Backups are stored in the .gctm-backups folder in the project directory.
Copyright (c) 2025 ERSIN KOC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
π Git Commit Time Machine - Comprehensive Git history manipulation tool with AI-powered commit message generation. Change commit dates, edit content, manage sensitive data, and generate creative commit messages using OpenAI, Anthropic, Google Gemini, and
The npm package gctm receives a total of 3 weekly downloads. As such, gctm popularity was classified as not popular.
We found that gctm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.