Skip to main content

mini version control system written in python

Project description

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

minipygit (py-git)

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 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

for ignored files, create a .py-gitignore file in the root of your repository and add the files you want to ignore

# 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.5.tar.gz (8.7 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.5-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minipygit-0.1.5.tar.gz
  • Upload date:
  • Size: 8.7 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.5.tar.gz
Algorithm Hash digest
SHA256 6a1568551748804e4626fe35b0e4fa1f89f1bc1db05b39f84ab5c0c009745f4f
MD5 e924c0bf45a4543fbd432e1ff2bc9195
BLAKE2b-256 a2b0ad65a1b5f95cd4f87e0cbad25ce391310f196a88794b9f00be3ba9eb49a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minipygit-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 391f7ca11e694a2babdb4626947a9ecf7b3d06dbe6cd96494842e8f2b5b2c771
MD5 1bae21d05e68959b5e836ebf519ecf1b
BLAKE2b-256 6512a46c1c993d01c0bf9384bf9709e9ccf795fbbf39f543cda55e2f9fec4569

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