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.1.tar.gz (8.1 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.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minipygit-0.1.1.tar.gz
  • Upload date:
  • Size: 8.1 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.1.tar.gz
Algorithm Hash digest
SHA256 14ec31ba8b4714eeeee714ea20248c808558b80a170ee8fae0bfb9cd4255b0bb
MD5 83ddae1bcb41fb7ad770e418e6213698
BLAKE2b-256 019dd9a39c7c8c247803ba11d08550f9098205081de38316d0da3095e86b36be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minipygit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6224ff13fca1a31f4fd60302bd2f74b4c7eb4f96f8a9cb995eb64366a1305392
MD5 c4c860f92e08739f1e5b7bfb45aeeac6
BLAKE2b-256 f7951955c315d75e920cc3c5a0fea8f9550b6d190b748139f6bf8f9dcf3d62b2

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