mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 08:46:50 +00:00
Update cheatsheets
This commit is contained in:
26
git-repl
Normal file
26
git-repl
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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/master/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`
|
||||
Reference in New Issue
Block a user