rugit

Crates.iorugit
lib.rsrugit
version0.1.2
created_at2024-12-30 22:01:55.93138+00
updated_at2024-12-30 22:18:54.896029+00
descriptionAn elementary Git implementation in Rust
homepage
repositoryhttps://github.com/yari-dewalt/rugit
max_upload_size
id1499472
size49,779
Yari DeWalt (yari-dewalt)

documentation

README

rugit

rugit is a git implementation written in Rust. This project recreates core git functionality to help understand git's internal workings.

Installation

# Install from crates.io
cargo install rugit

# Or build from source
git clone https://github.com/yourusername/rugit.git
cd rugit
cargo install --path .

Commands

Basic

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

Advanced

# 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>
Commit count: 5

cargo fmt