HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git repl — Git REPL (read-evaluate-print-loop) - an interactive Git shell. Part of `git-extras`. More informati

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgit replevaluatereadcliprintreplgit

Problem

How to use the git repl command: Git REPL (read-evaluate-print-loop) - an interactive Git shell. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-repl>.

Solution

git repl — Git REPL (read-evaluate-print-loop) - an interactive Git shell. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-repl>.

Start an interactive Git shell:
git repl


Run a Git command while in the interactive Git shell:
{{git_subcommand}} {{command_arguments}}


Run an external (non-Git) command while in the interactive Git shell:
!{{command}} {{command_arguments}}


Exit the interactive Git shell (or press <Ctrl d>):
exit

Code Snippets

Start an interactive Git shell

git repl

Run a Git command while in the interactive Git shell

{{git_subcommand}} {{command_arguments}}

Run an external (non-Git) command while in the interactive Git shell

!{{command}} {{command_arguments}}

Exit the interactive Git shell (or press `<Ctrl d>`)

exit

Context

tldr-pages: common/git repl

Revisions (0)

No revisions yet.