File: git-repl.md

package info (click to toggle)
git-extras 6.5.0-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,852 kB
  • sloc: sh: 3,872; makefile: 126
file content (70 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
git-repl(1) -- git read-eval-print-loop
=======================================

## SYNOPSIS

`git-repl`

## DESCRIPTION

  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.

## COMMANDS

  <command>

  Interpreted as `git <command>`.

  !&lt;command&gt;

  Interpreted as `<command>` (not through `git`).

  ls

  Equivalent of 'git ls-files'.

  exit|quit

  Ends the repl session.


## EXAMPLES

    $ git repl
    git version 2.9.2
    git-extras version 3.0.0
    type 'ls' to ls files below current directory,
    '!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

## AUTHOR

Written by Tj Holowaychuk &lt;<tj@vision-media.ca>&gt;

## REPORTING BUGS

&lt;<https://github.com/tj/git-extras/issues>&gt;

## SEE ALSO

&lt;<https://github.com/tj/git-extras>&gt;