Skip to content

aaniset/pygit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PyGit-Lite πŸš€

A lightweight Python implementation of Git version control system built for educational purposes.

Features ⭐

  • Repository initialization and management
  • File staging and commit tracking
  • Branch management and switching
  • Diff visualization
  • Basic merge capabilities
  • Simple and clean implementation

Installation πŸ“¦

# Install from PyPI
pip install pygit-lite

# Or install from source
git clone https://github.com/aaniset/pygit
cd pygit
pip install -e .

Quick Start πŸƒ

# Initialize a repository
pygit init

# Add files to staging
pygit add file.txt

# Create a commit
pygit commit -m "Initial commit" --author "Your Name <email@example.com>"

# Create and switch branches
pygit branch feature
pygit checkout feature

# View history
pygit log

Test Drive πŸš—

Try these commands to explore PyGit-Lite:

# Create test directory
mkdir pygit-test
cd pygit-test

# Initialize repository
pygit init

# Create and add files
echo "Hello PyGit" > file1.txt
pygit add file1.txt
pygit commit -m "Initial commit"

# Create feature branch
pygit branch feature
pygit checkout feature

# Make changes
echo "New feature" > feature.txt
pygit add feature.txt
pygit commit -m "Add feature"

# View history
pygit log

Contributing 🀝

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest features
  • Submit pull requests

Author ✍️

Anudeep

Links πŸ”—

License πŸ“„

This project is licensed under the MIT License.


Made with ❀️ by Anudeep

Citations: [1] https://pypi.org/project/pygit-lite/0.1.0/ [2] https://github.com/aaniset/pygit


Answer from Perplexity: pplx.ai/share

About

pip install pygit-lite==0.1.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages