[go: up one dir, main page]

Install using Cargo

Crate available on Crates.io

Requirements

Cargo

  1. Install Cargo

  2. Check the installation with this command

    choco --version
    

    If it has been well settled, it should output something like this :

    cargo 1.80.0 (376290515 2024-07-16)
    

    Else if it has been badly settled, it should output something like this :

    cargo: command not found
    

Git

git-gamble doesn't repackage git, it uses the one installed on your system

  1. Install git manually

  2. Make sure it is available in your $PATH, you can check it with this command

    git --version
    

    If it has been well settled, it should output something like this :

    git version 2.45.2
    

    Else if it has been badly settled, it should output something like this :

    git: command not found
    

Install

Run the following command

cargo install git-gamble

Add ~/.cargo/bin to your $PATH

Fish:

set --export --append PATH ~/.cargo/bin

Bash / ZSH:

export PATH=$PATH:~/.cargo/bin

Check the installation

Check if all have been well settled

git gamble --version

If it has been well settled , it should output this :

git-gamble 2.11.0

Else if it has been badly settled , it should output this :

git : 'gamble' is not a git command. See 'git --help'.

Update

cargo update --package git-gamble

Uninstall

cargo uninstall git-gamble