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.3.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.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minipygit-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ad9b7bdc9994aa1b32616ac8dfb2b0753bb4deed9dd01a80dab1d4e1ebb1c59e
MD5 17bce1828b3b45d2b181c6856a10381b
BLAKE2b-256 ad6d1fac4e47c6458c6e3ce02db27d88437c03e67509286d06ff3707e3f5a18d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minipygit-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb709ff908040bacc9d08d3cabcbc02f6a0d6772277881807a62e075f41db50
MD5 8415e707aae858aae1cdd5346018ca28
BLAKE2b-256 c9cad22ef5b24266b20adf6d03893d0bd3fe4ef6023c543026d7b535a5ccc0ed

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