git-file-tracker
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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 changes
  • gitDir: Git repository directory (defaults to current directory)
  • ignorePaths: Additional paths to ignore
  • autoCommit: 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

Package Sidebar

Install

npm i git-file-tracker

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

13 kB

Total Files

10

Last publish

Collaborators

  • mudassirpro