DEV Community

Cover image for gmk: Stop Typing Git URLs
kt
kt

Posted on

gmk: Stop Typing Git URLs

😫 The Problem

We've all been there. You find an amazing library on GitHub, you star it, and then... you forget about it. Two weeks later, you need it for a project.

  • "What was that repo called again?"
  • Search through GitHub stars...
  • Copy URL...
  • git clone https://github.com/long-org-name/complex-repo-name.git

It’s friction. It breaks your flow.

🚀 The Solution: gmk (Git Mark)

I built gmk to solve this exact problem. It's a blazing fast, interactive CLI tool written in Rust that lets you bookmark repositories once and clone them anywhere, instantly.

gmk demo

✨ Features

  • 🔖 Bookmark & Forget: Just run gmk set <url>. It automatically parses the owner and repo name.
  • 🔍 Fuzzy Finder: Powered by skim. Type a few characters to find any repo instantly.
  • 🌿 Smart Cloning:
    • Press Enter to clone the default branch.
    • Press Ctrl + b to interactively specify a branch (e.g., dev or v2).
  • ⚡ Zero Friction UI: The interface appears inline and clears itself away after use, keeping your terminal clean.

📦 Installation

Homebrew (macOS / Linux)

brew tap kanywst/gmk https://github.com/kanywst/gmk
brew install gmk
Enter fullscreen mode Exit fullscreen mode

Cargo (Rust)

cargo install gmk
Enter fullscreen mode Exit fullscreen mode

🎮 How to use

  1. Save a repo:

    gmk set https://github.com/rust-lang/rust.git
    
  2. Clone it later:
    Just type gmk.

    gmk
    # Fuzzy finder appears... select 'rust' and hit Enter!
    

🛠️ Built with Rust 2026

This project was a great playground to explore modern Rust CLI practices:

  • Clap v4 for argument parsing.
  • Skim for the fuzzy finding engine.

🤝 Open Source

I'd love to hear your feedback or see your PRs!

👉 Give it a star on GitHub

Top comments (0)