LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-repl

Interactive read-eval-print loop for Git

TLDR

Start git REPL
$ git repl
copy
Run command in REPL
$ status
copy
Show log in REPL
$ log --oneline -10
copy
Exit REPL
$ exit
copy

SYNOPSIS

git repl

DESCRIPTION

git repl provides an interactive shell for Git commands. Part of git-extras, it starts a read-eval-print loop where commands can be entered without the "git" prefix; input starting with `!` runs as a raw shell command instead, and `ls` is mapped to `git ls-files`.The REPL simplifies exploratory Git sessions by reducing typing. Command history (via readline) is available across the session. Exit with "exit", "quit", or Ctrl-D.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Part of git-extras package. Commands run without "git" prefix. Shell features limited.

HISTORY

git repl is part of git-extras, providing an interactive environment for frequent git users.

SEE ALSO

git(1), tig(1), git-extras(1)

RESOURCES

Copied to clipboard
Kai