2.0.0 • Published 5 months ago
git-file-tracker v2.0.0
Git File Tracker
An automated file tracking and Git management system that monitors file changes and creates meaningful commit messages automatically.
Features
- 🔍 Automatic file change detection
- ✨ Smart commit message generation
- 🚀 Automatic Git commits and pushes
- ⚡ Real-time file monitoring
- 🛡️ Intelligent .gitignore management
- 💪 TypeScript support
Installation
npm install git-file-tracker
Usage
import { createFileTracker } from 'git-file-tracker';
const tracker = createFileTracker({
watchPath: './src',
autoCommit: true,
autoPush: true,
branch: 'main'
});
// The tracker will automatically monitor files and create commits
// To stop tracking:
await tracker.stop();
Configuration Options
watchPath
: Directory to monitor for changesgitDir
: Git repository directory (defaults to current directory)ignorePaths
: Additional paths to ignoreautoCommit
: Enable automatic commits (default: true)autoPush
: Enable automatic pushing to remote (default: true)branch
: Target branch for pushes (default: 'main')
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT