GIT-REPL(1) | Git Extras | GIT-REPL(1) |
git-repl - git read-eval-print-loop
git-repl
Git read-eval-print-loop. Let's you run git commands without typing 'git'.
Commands can be prefixed with an exclamation mark (!) to be interpreted as a regular command.
Type exit or quit to end the repl session.
<command>
Interpreted as git <command>.
!<command>
Interpreted as <command> (not through git).
ls
Equivalent of 'git ls-files'.
Ends the repl session.
$ git repl git version 2.9.2 git-extras version 3.0.0 type 'ls' to ls files below current directory, git (master)> ls-files History.md Makefile Readme.md bin/git-changelog bin/git-count bin/git-delete-branch bin/git-delete-tag bin/git-ignore bin/git-release git (master)> !echo Straight from the shell! Straight from the shell! git (master)> quit !command' to execute any command or just 'subcommand' to execute any git subcommand git (master)> ls-files History.md Makefile Readme.md bin/git-changelog bin/git-count bin/git-delete-branch bin/git-delete-tag bin/git-ignore bin/git-release git (master)> !echo Straight from the shell! Straight from the shell! git (master)> quit
Written by Tj Holowaychuk <tj@vision-media.ca>
<https://github.com/tj/git-extras/issues>
<https://github.com/tj/git-extras>
October 2022 |