|
1 |
| -# Several important words |
2 |
| -You can install Elegant Git by either executing `bash` script or using `homebrew`. After the |
3 |
| -installation, please configure your environment by running |
4 |
| -[`git elegant acquire-git`](commands.md#acquire-git) and follow the instructions. To find out more, |
5 |
| -please read [the configuration approach](configuration.md). |
| 1 | +# Installation via Bash script |
| 2 | +Run the follwing command and follow the instructions |
| 3 | +```bash |
| 4 | +curl https://raw.githubusercontent.com/bees-hive/elegant-git/master/install.bash | $(which bash) |
| 5 | +``` |
| 6 | + |
| 7 | +Elegant Git will be installed in `~/.elegant-git` directory. That's why if you want to remove |
| 8 | +the installation, just remove the directory. |
| 9 | + |
| 10 | +# Installation via Homebrew |
| 11 | +On macOS, you can install [Homebrew](https://brew.sh/) if you haven't already, then run |
| 12 | +``` |
| 13 | +brew install git bees-hive/hive/elegant-git |
| 14 | +``` |
| 15 | +The command will |
| 16 | + |
| 17 | +- install Git as it has to be installed with Homebrew for enabling Bash/Zsh completion |
| 18 | +- install Elegant Git |
| 19 | +- configure Bash completion for both Git and Elegant Git |
| 20 | + |
| 21 | +P.S. If you need Zsh completion for all Git commands, consider using |
| 22 | +<https://raw.githubusercontent.com/zsh-users/zsh/master/Completion/Unix/Command/_git> |
| 23 | +(see <https://github.com/bees-hive/elegant-git/blob/master/install.bash> for the details). |
| 24 | + |
| 25 | +# Post-installation actions |
| 26 | +Configure your environment by running [`git elegant acquire-git`](commands.md#acquire-git) |
| 27 | +and follow the instructions. To find out more, please read |
| 28 | +[the configuration approach](configuration.md). |
6 | 29 |
|
7 | 30 | You can access Elegant Git in CLI using any of
|
8 | 31 | ```bash
|
9 | 32 | git <command>
|
10 | 33 | git elegant <command>
|
11 | 34 | git-elegant <command>
|
12 | 35 | ```
|
13 |
| -where `<command>` is one of the available commands which are described on [commands](commands.md) |
14 |
| -page or are printed in a terminal by running `git elegant`. |
| 36 | +where `<command>` is one of the commands described on the [commands](commands.md) page or |
| 37 | +printed in a terminal after running `git elegant`. |
15 | 38 |
|
16 | 39 | Also, please use [`git elegant clone-repository`](commands.md#clone-repository) or
|
17 | 40 | [`git elegant init-repository`](commands.md#init-repository) instead of regular `clone` or `init`
|
18 | 41 | Git's commands in order to get Elegant Git working by default.
|
19 |
| - |
20 |
| -# `bash` installation |
21 |
| -Run `curl https://raw.githubusercontent.com/bees-hive/elegant-git/master/install.bash | $(which bash)` |
22 |
| -and follow the provided instructions to install the tool. `${HOME}/.elegant-git` directory will host |
23 |
| -all required files. That's why if you want to remove installation, you need to remove this directory |
24 |
| -only (`rm -r ${HOME}/.elegant-git`). |
25 |
| - |
26 |
| -Elegant Git's BASH completion does not work without regular Git BASH completion. If you don't have |
27 |
| -it, please follow <https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion> |
28 |
| -in addition to Elegant Git's configuration. |
29 |
| - |
30 |
| -# Homebrew installation |
31 |
| -On macOS, you can install [Homebrew](https://brew.sh/) if you haven't already, then run |
32 |
| -`brew install git` (we must install Git with Homebrew in order to have a working BASH completion) |
33 |
| -and `brew install bees-hive/hive/elegant-git` (please visit |
34 |
| -<https://github.com/bees-hive/homebrew-hive> if you need details). |
|
0 commit comments