Installation
This guide shows how to install the git-system-follower CLI. git-system-follower can be installed either source, or from pre-built python package.
git-system-follower is python package, you can install it with any python package manager.
Note
git-system-follower only supports Linux, it can run on Windows or macOS, but officially Windows and macOS are not supported
From PyPI
If you prefer to use git-system-follower as a standalone CLI tool instead of integrating its functionality into your Python packages, uv tool
is the recommended installation method.
For more details, see the uv tool documentation.
Recommended: By uv
Before proceeding, make sure uv
is installed. See the uv installation guide
Then, install git-system-follower with:
However, you may want to install git-system-follower as a python package so that you can, for example, use it inside your own python packages
You can also do this with uv
:
However, if uv
is not a suitable option, use pip
instead.
Standard: By pip
From Source
Building git-system-follower from source is slightly more work
# create & activate virtual env
python -m venv .venv && source .venv/bin/activate
# Clone git repository
git clone https://github.com/Netcracker/qubership-git-system-follower.git
# Install git-system-follower
pip install -e qubership-git-system-follower/
Additional git-system-follower configuration
Enabling shell autocompletion
git-system-follower supports command autocompletion in Bash
, Zsh
, and Fish
, which will save you a lot of time when typing commands.
Enter into the virtual environment where you have git-system-follower installed. If you used uv tool install
to install, you do not need to enter in anywhere, git-system-follower commands are available in your system
-
Generate and save script:
Save the script somewhere:Source the file in
~/.bashrc
: -
Via
eval
:
However, there is another way, viaeval
. Add this to~/.bashrc
:Warning
Using
eval
means that the command is invoked and evaluated every time a shell is started, which can delay shell responsiveness. To speed it up, write the generated script to a file, then source that (1st option)
-
Generate and save script:
Save the script somewhere:Source the file in
~/.zshrc
: -
Via
eval
:
However, there is another way, viaeval
. Add this to~/.zshrc
:Warning
Using
eval
means that the command is invoked and evaluated every time a shell is started, which can delay shell responsiveness. To speed it up, write the generated script to a file, then source that (1st option)
-
Via completions file:
Save the script to~/.config/fish/completions/gsf.fish
: -
Via source command:
This is the same file used for the activation script method above. For
However, there is another way. Add this to~/.config/fish/completions/gsf.fish
:Fish
it’s probably always easier to use that method.
Note
For autocompletion, git-system-follower uses the built-in functionality of the click
library