Mgit
A lightweight Git automation tool that generates commit messages from diffs using AI.
Setup
Windows (PowerShell)
1. Install Rust
If you don't have Rust installed, install it using rustup:
Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe
.\rustup-init.exe
2. Install Visual Studio Build Tools (Required for Windows)
The MSVC toolchain requires Visual Studio Build Tools. Install them using one of these methods:
Option A: Using winget (Recommended)
winget install Microsoft.VisualStudio.2022.BuildTools
Then manually run the installer and select "Desktop development with C++" workload.
Option B: Direct Download
- Download from: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022
- Run the installer
- Select "Desktop development with C++" workload
- Click Install
Option C: Using Chocolatey
choco install visualstudio2022buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"
3. Verify Installation
After installing the build tools, restart your terminal and verify:
cargo --version
rustc --version
4. Build the Project
cargo build
cargo run
WSL (Windows Subsystem for Linux)
1. Install Rust
If you don't have Rust installed, install it using rustup:
|
Follow the prompts and select the default installation options. After installation, restart your terminal or run:
2. Install Build Dependencies
WSL uses the GNU toolchain, so you'll need to install the necessary build tools:
# For Ubuntu/Debian
# For Fedora
# For Arch Linux
3. Verify Installation
Verify that Rust is installed correctly:
4. Build the Project
Development
# Run the project
# Run tests
# Format code
# Lint code