Skip to main content

mini version control system written in python

Project description

github: https://github.com/RomeoManoela/py-git

minipygit

A mini version control system written in Python, inspired by Git.

Overview

minipygit is a lightweight version control system that implements the core functionality of Git. It's designed to be simple, educational, and functional for basic version control needs.

Features

  • Initialize a repository
  • Stage files for commit
  • Commit changes with messages
  • View repository status
  • View commit history
  • Compare file differences
  • Checkout previous commits

Installation

pip install minipygit

Usage

# Initialize a new repository
py-git init

# Add files to staging area
py-git add file.txt
py-git add .  # Add all files

# Commit changes
py-git commit "Add initial files"

# Check repository status
py-git status

# View commit history
py-git logs

# View differences in a file
py-git diff file.txt

# Checkout a specific commit
py-git checkout <commit_hash>

# Display help
py-git --help
  • Python 3.12 or higher

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minipygit-0.1.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minipygit-0.1.4-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file minipygit-0.1.4.tar.gz.

File metadata

  • Download URL: minipygit-0.1.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for minipygit-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c15b97bac85871bd5cd724cc9e2b16a9b1bbf4150b9ef9180df14e864d1b788c
MD5 3c43cc12f10417b118cae71f0a196a9a
BLAKE2b-256 0ec7d64505f9e84529dc06fe596c91c1f67c926b23f246e4c945c524af11532d

See more details on using hashes here.

File details

Details for the file minipygit-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: minipygit-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for minipygit-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c58519c20bc2413f09159102c7b413dc211bbee4f15f1eb7b7eb6f368a6e6cf4
MD5 deffa914d173bb5ea80aa8b667634621
BLAKE2b-256 2835e0dec95e47c66a902e89ce47f32c498d2d791a4251ba5598745c828650c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page