1GIT-SHELL(1)                      Git Manual                      GIT-SHELL(1)
2
3
4

NAME

6       git-shell - Restricted login shell for Git-only SSH access
7

SYNOPSIS

9       git shell [-c <command> <argument>]
10

DESCRIPTION

12       A login shell for SSH accounts to provide restricted Git access. When
13       -c is given, the program executes <command> non-interactively;
14       <command> can be one of git receive-pack, git upload-pack, git
15       upload-archive, cvs server, or a command in COMMAND_DIR. The shell is
16       started in interactive mode when no arguments are given; in this case,
17       COMMAND_DIR must exist, and any of the executables in it can be
18       invoked.
19
20       cvs server is a special command which executes git-cvsserver.
21
22       COMMAND_DIR is the path "$HOME/git-shell-commands". The user must have
23       read and execute permissions to the directory in order to execute the
24       programs in it. The programs are executed with a cwd of $HOME, and
25       <argument> is parsed as a command-line string.
26

AUTHOR

28       Written by Linus Torvalds <torvalds@osdl.org[1]>
29

DOCUMENTATION

31       Documentation by Petr Baudis and the git-list <git@vger.kernel.org[2]>.
32

GIT

34       Part of the git(1) suite
35

NOTES

37        1. torvalds@osdl.org
38           mailto:torvalds@osdl.org
39
40        2. git@vger.kernel.org
41           mailto:git@vger.kernel.org
42
43
44
45Git 1.7.4.4                       04/11/2011                      GIT-SHELL(1)
Impressum