Skip to content

A simple, Git-inspired file tracking and versioning tool for lightweight and local use. Easily track changes, commit updates, and revert modifications within a directory.

Notifications You must be signed in to change notification settings

MohammadOshkooh/GitOsLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🚀 GitOsLab - A Lightweight File Versioning System

GitOsLab is a simple file tracking and versioning tool, inspired by Git, but designed for lightweight and local use. It helps track changes, commit updates, and revert modifications in files within a directory.

📌 Features

  • Initialize a tracking repository
  • Detect and track file changes automatically
  • Commit changes with messages
  • Revert to previous commits
  • Monitor new, modified, and untracked files

🔧 Installation

First, make sure you have Python 3.x installed. Then, install dependencies:

pip install termcolor

Clone the repository:

git clone https://github.com/MohammadOshkooh/GitOsLab.git
cd GitOsLab

🚀 Usage

🏁 Initialize a repository

To start tracking files, initialize a repository:

python scripts.py init

📂 Add files to tracking

To track files in a specific directory:

python scripts.py add <path>

✅ Commit changes

To save changes with a message:

python scripts.py commit -m "Your commit message"

🔄 Revert to a previous commit

To undo changes and restore a previous commit:

python scripts.py revert <timestamp>

📊 Check status

To view the current status of tracked files:

python scripts.py status

🛠 How It Works?

  1. init - Creates a logs/ directory to store tracked files and commit history.
  2. add - Detects file types in the directory and tracks changes.
  3. commit - Saves the current state of files along with a commit message.
  4. revert - Restores files to the last committed state.
  5. status - Shows a summary of new, modified, and untracked files.

📝 Example Workflow

python scripts.py init
python scripts.py add .
python scripts.py commit -m "Initial commit"
python scripts.py status
python scripts.py revert 1706781234

About

A simple, Git-inspired file tracking and versioning tool for lightweight and local use. Easily track changes, commit updates, and revert modifications within a directory.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages