Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.19 KB

File metadata and controls

68 lines (48 loc) · 1.19 KB

Installation Guide

Prerequisites

  • Rust 1.70 or later
  • Git (for repository access)

Install from Source

# Clone the repository
git clone https://github.com/unhappychoice/gittype.git
cd gittype

# Build and install
cargo build --release
cargo install --path .

Install from Cargo

cargo install gittype

Install from Homebrew

brew install gittype

Verify Installation

gittype --version

Local Data Storage

gittype stores its data, including the local database and log files, in the ~/.gittype/ directory.

  • Database: ~/.gittype/gittype.db - Contains your typing history, scores, and other session data.
  • Logs: ~/.gittype/gittype.log - Used for debugging and monitoring.

You can safely remove this directory if you want to reset all your data.

Troubleshooting

Common Issues

  1. Rust version too old

    rustup update stable
  2. Permission denied

    # On macOS/Linux, ensure cargo bin is in PATH
    echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
  3. Build failures

    # Clean and rebuild
    cargo clean
    cargo build --release