summaryrefslogtreecommitdiffstats
path: root/readme/install.md
blob: 6575ceaaf1700d7402c088efc63560bcd292fb9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Installation

## Table of Contents

* [Alpine Linux](./install.md#alpine-linux)
* [Arch Linux](./install.md#arch-linux)
* [Cargo Package Manager](./install.md#cargo-package-manager)
* [Debian and derivatives](./install.md#debian-and-derivatives)
* [GNU Guix](./install.md#gnu-guix-package-manager)
* [FreeBSD](./install.md#freebsd)
* [macOS](./install.md#macos)
* [Windows](./install.md#windows)

## Alpine Linux

Install the [git-interactive-rebase-tool](https://pkgs.alpinelinux.org/packages?name=git-interactive-rebase-tool) package from the community repository (since Alpine v3.14):

    apk add git-interactive-rebase-tool

## Arch Linux

### With your [AUR](https://aur.archlinux.org/) helper of choice

    yay -S git-interactive-rebase-tool

### Manual Install

1. Download the [package snapshot](https://aur.archlinux.org/packages/git-interactive-rebase-tool/)
1. Extract to a known location
1. Run `makepkg -si` from the extracted location

#### Troubleshooting

If you receive  the error, "no default toolchain configured", run `rustup default stable` and then retry the installation.
This generally happens when `rustup` is installed without setting a default toolchain.

### Remove

    sudo pacman -R git-interactive-rebase-tool

## Cargo Package Manager

    cargo install git-interactive-rebase-tool
    
### Remove

    cargo uninstall git-interactive-rebase-tool

## Debian and derivatives

Download the `.deb` file from the [releases page][releases] and install with:

    sudo dpkg -i /path/to/git-interactive-rebase-tool_*.deb

The executable will be installed to `/usr/bin`.

### Remove

    sudo dpkg -r git-interactive-rebase-tool
    
## Gnu Guix Package Manager

    guix install git-interactive-rebase-tool

### Remove

    guix remove git-interactive-rebase-tool
    
### In a temporary environment 

    guix shell git-interactive-rebase-tool
    
### In a temporary container (linux namespace)

    guix shell --container git-interactive-rebase-tool

## FreeBSD

### With [Ports](https://www.freebsd.org/ports/)

#### Using pkg

    pkg install interactive_rebase_tool

#### Manual

    cd /usr/ports/devel/interactive_rebase_tool && make install clean

#### Remove

    pkg remove interactive_rebase_tool

## macOS

### With [Homebrew](https://brew.sh/)

    brew install git-interactive-rebase-tool

#### Remove

    brew rm git-interactive-rebase-tool

### Manual install

Download the `macos-interactive-rebase-tool` from the [releases page][releases] and copy it as `interactive-rebase-tool`
to a location on your `PATH`.

#### Remove

Delete the copied `interactive-rebase-tool`.

### Notes

On macOS, Terminal.app does not support highlighting the selected line(s). If you want this feature you will need to use
a terminal emulator like [iTerm2](https://iterm2.com/index.html).

## Windows

### With [Chocolatey](https://chocolatey.org/)

    choco install git-interactive-rebase-tool

#### Remove

    choco uninstall git-interactive-rebase-tool

### With [Scoop](https://scoop.sh/)

    scoop install git-interactive-rebase-tool

#### Remove

    scoop uninstall git-interactive-rebase-tool

### Manual Install

*Note: Windows binaries are not fully tested. If you are having issues please report them.*

Download the tool from the [releases page][releases] and save it to a known location.

#### Remove

Delete the saved executable.

[releases]:https://github.com/MitMaro/git-interactive-rebase-tool/releases