You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Commands.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -382,10 +382,9 @@ the repl.
382
382
383
383
```bash
384
384
$ git repl
385
-
git version 2.9.2
386
-
git-extras version 3.0.0
387
-
type'ls' to ls files below current directory,
388
-
'!command' to execute any command or just 'subcommand' to execute any git subcommand
385
+
git version 2.34.1
386
+
git-extras version 7.3.0
387
+
Type 'ls' to ls files below current directory;'!command' to execute any command or just 'subcommand' to execute any git subcommand;'quit', 'exit', 'q', ^D, or ^C to exit the git repl.
Git read\-eval\-print\-loop\. Lets you run \fBgit\fR commands without typing \'git\'\.
14
-
.
11
+
Git read\-eval\-print\-loop\. Lets you run \fBgit\fR commands without typing 'git'\.
12
+
.P
13
+
Commands can be prefixed with an exclamation mark (!) to be interpreted as a regular shell command\.
15
14
.P
16
-
Commands can be prefixed with an exclamation mark (!) to be interpreted as a regular command\.
17
-
.
15
+
Any arguments to git repl will be taken collectively as the first command to execute in the repl\.
18
16
.P
19
-
Type \fBexit\fR or \fBquit\fR to end the repl session\.
20
-
.
17
+
Type \fBexit\fR, \fBquit\fR, or \fBq\fR to end the repl session\. Ctrl\-D an Ctrl\-C will also work\.
21
18
.SH "COMMANDS"
22
19
<command>
23
-
.
24
20
.P
25
21
Interpreted as \fBgit<command>\fR\.
26
-
.
27
22
.P
28
23
!<command>
29
-
.
30
24
.P
31
25
Interpreted as \fB<command>\fR (not through \fBgit\fR)\.
32
-
.
33
26
.P
34
27
ls
35
-
.
36
28
.P
37
-
Equivalent of \'git ls\-files\'\.
38
-
.
29
+
Equivalent of 'git ls\-files'\.
39
30
.P
40
-
exit|quit
41
-
.
31
+
exit|quit|q
42
32
.P
43
33
Ends the repl session\.
44
-
.
45
34
.SH "EXAMPLES"
46
-
.
47
35
.nf
48
-
49
36
$ git repl
50
-
git version 2\.9\.2
51
-
git\-extras version 3\.0\.0
52
-
type \'ls\' to ls files below current directory,
53
-
\'!command\' to execute any command or just \'subcommand\' to execute any git subcommand
37
+
git version 2\.34\.1
38
+
git\-extras version 7\.3\.0
39
+
Type 'ls' to ls files below current directory; '!command' to execute any command or just 'subcommand' to execute any git subcommand; 'quit', 'exit', 'q', ^D, or ^C to exit the git repl\.
54
40
55
41
git (master)> ls\-files
56
42
History\.md
@@ -67,14 +53,10 @@ git (master)> !echo Straight from the shell!
67
53
Straight from the shell!
68
54
69
55
git (master)> quit
70
-
.
71
56
.fi
72
-
.
73
57
.SH "AUTHOR"
74
-
Written by Tj Holowaychuk <\fItj@vision\-media\.ca\fR>
75
-
.
58
+
Written by Tj Holowaychuk <\fItj@vision\-media\.ca\fR>\. Updated by Wyatt S Carpenter to add display of the previous command's exit status, 'q', and the ability to pass in the initial command as arguments\.
type 'ls' to ls files below current directory, '!command' to execute any command or just 'subcommand' to execute any git subcommand. 'quit', 'exit', 'q', ^D, or ^C to exit the git repl.
47
+
Type 'ls' to ls files below current directory; '!command' to execute any command or just 'subcommand' to execute any git subcommand; 'quit', 'exit', 'q', ^D, or ^C to exit the git repl.
Written by Tj Holowaychuk <<[email protected]>>. Updated by Wyatt S Carpenter to add display of the previous command's exit status, 'q', and the ability to pass in the initial command as arguments.
0 commit comments