Install ngit

Installation Options

1. Build from Source
  • Install rust and cargo
  • clone this git url
  • checkout the latest release tag (v1.6.1)
  • run cargo build --release
  • move the following binaries to your PATH:
    ./target/release/ngit
    ./target/release/git-remote-nostr
2. Install with Cargo
3. Install with Nix
  • Add ngit as a flake input:
    { inputs = { ngit.url = "github:DanConwayDev/ngit-cli"; } }
  • include default packages. eg when using home-manager:
    { inputs, ... }: { home-manager.users.myuser = { pkgs, ... }: { home.packages = [ inputs.ngit.packages."${pkgs.system}".default ]; } }
4. Download Compiled Binaries

Download the pre-built binaries for your platform and add them to your PATH:

Ubuntu arm

After installation, run the following commands to ensure both binaries are in your PATH:

ngit
git-remote-nostr

Consider reviewing the quick start guide

gitworkshop.dev logo GitWorkshop.dev