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.
- Initialize a tracking repository
- Detect and track file changes automatically
- Commit changes with messages
- Revert to previous commits
- Monitor new, modified, and untracked files
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
To start tracking files, initialize a repository:
python scripts.py init
To track files in a specific directory:
python scripts.py add <path>
To save changes with a message:
python scripts.py commit -m "Your commit message"
To undo changes and restore a previous commit:
python scripts.py revert <timestamp>
To view the current status of tracked files:
python scripts.py status
init
- Creates alogs/
directory to store tracked files and commit history.add
- Detects file types in the directory and tracks changes.commit
- Saves the current state of files along with a commit message.revert
- Restores files to the last committed state.status
- Shows a summary of new, modified, and untracked files.
python scripts.py init
python scripts.py add .
python scripts.py commit -m "Initial commit"
python scripts.py status
python scripts.py revert 1706781234