The recommended way to install git-machete depends on your setup.
On macOS, we recommend using Homebrew.
brew install git-macheteOn almost any system, if you have Python and pip installed, the following should work:
pip install --user git-macheteFor other common installation methods (Windows, Nix, conda, etc.), see the README, Install section. For the complete list of known wrapper packages for git-machete, see PACKAGES.
git-machete comes with shell completion support.
If you installed via Homebrew, it might already be set up.
Otherwise, add the following to your shell configuration file (.bashrc, .zshrc, or config.fish):
Bash: source <(git machete completion bash)
Zsh: source <(git machete completion zsh)
Fish: git machete completion fish | source
For a smoother experience, you might want to set up some shell aliases to save typing.
A common practice is to alias git to g in your shell configuration:
alias g=gitYou can also add a git alias for machete:
git config --global alias.m macheteThis allows you to run g m instead of git machete.
< Previous: Introduction | Next: Discovering and editing branch layout >