| Crates.io | rugit |
| lib.rs | rugit |
| version | 0.1.2 |
| created_at | 2024-12-30 22:01:55.93138+00 |
| updated_at | 2024-12-30 22:18:54.896029+00 |
| description | An elementary Git implementation in Rust |
| homepage | |
| repository | https://github.com/yari-dewalt/rugit |
| max_upload_size | |
| id | 1499472 |
| size | 49,779 |
rugit is a git implementation written in Rust. This project recreates core git functionality to help understand git's internal workings.
# Install from crates.io
cargo install rugit
# Or build from source
git clone https://github.com/yourusername/rugit.git
cd rugit
cargo install --path .
# Initialize a new repository
rugit init
# Check status of working directory
rugit status
# Add files to commit
rugit add <file>
# Create a new commit
rugit commit -m "Your commit message"
# View commit history
rugit log
# Create a new branch
rugit branch branch-name
# Switch to a different commit/branch
rugit checkout <commit-hash or branch-name>
# Create a tag
rugit tag v1.0.0
# View differences
rugit diff
rugit diff --cached
# Merge branches
rugit merge <commit-hash or branch-name>
# Reset to specific commit
rugit reset <commit-hash>
# Show commit details
rugit show <commit-hash>