← 返回命令列表

Linux command

git-repl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start git REPL

git repl

Run command in REPL

status

Show log in REPL

log --oneline -10

Exit REPL

exit

说明

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. The REPL simplifies exploratory Git sessions by reducing typing. Tab completion and command history are available. Exit with "exit" or Ctrl-D.

FAQ

What is the git-repl command used for?

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. The REPL simplifies exploratory Git sessions by reducing typing. Tab completion and command history are available. Exit with "exit" or Ctrl-D.

How do I run a basic git-repl example?

Run `git repl` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more git-repl examples?

This page includes 4 examples for git-repl, plus related commands for nearby Linux tasks.