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

Uploaded Python 3

File details

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

File metadata

  • Download URL: minipygit-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 835b622e2ad40970073f9e327f07a88803a124d257be8aa7b9c6dd3af6dd85f2
MD5 28305f44ad4dce1cf26a8f33f9cfa35d
BLAKE2b-256 a8aec2320df8a5821a1928ac3548985f2e43fd2bf4e557c6fa97ce1faf202a60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minipygit-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 945d1db7320b7b3c97b138b7f1fc6479fa064007991ab95faafd58d624bb6074
MD5 bd8dbfd45c23a5e24c00fb0858b73164
BLAKE2b-256 4f75b72dc1778b9ee7a2946b9687f2d9dbfe69ee531e670af0eb5daddd7284d7

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