A lightweight Python implementation of Git version control system built for educational purposes.
- Repository initialization and management
- File staging and commit tracking
- Branch management and switching
- Diff visualization
- Basic merge capabilities
- Simple and clean implementation
# Install from PyPI
pip install pygit-lite
# Or install from source
git clone https://github.com/aaniset/pygit
cd pygit
pip install -e .# 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 logTry 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 logContributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
Anudeep
- Email: aaniset1@asu.edu
- GitHub: @aaniset
- PyPI Package: pygit-lite
- GitHub Repository: aaniset/pygit
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