man pages section 1: User Commands

Exit Print View

Updated: July 2014
 
 

git-shell (1)

Name

git-shell - only SSH access

Synopsis

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

Description




Git Manual                                           GIT-SHELL(1)



NAME
     git-shell - Restricted login shell for Git-only SSH access

SYNOPSIS
     git shell [-c <command> <argument>]


DESCRIPTION
     A login shell for SSH accounts to provide restricted Git
     access. When -c is given, the program executes <command>
     non-interactively; <command> can be one of git receive-pack,
     git upload-pack, git upload-archive, cvs server, or a
     command in COMMAND_DIR. The shell is started in interactive
     mode when no arguments are given; in this case, COMMAND_DIR
     must exist, and any of the executables in it can be invoked.

     cvs server is a special command which executes
     git-cvsserver.

     COMMAND_DIR is the path "$HOME/git-shell-commands". The user
     must have read and execute permissions to the directory in
     order to execute the programs in it. The programs are
     executed with a cwd of $HOME, and <argument> is parsed as a
     command-line string.

GIT
     Part of the git(1) suite



ATTRIBUTES
     See attributes(5) for descriptions of the following
     attributes:

     +---------------+--------------------------+
     |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
     +---------------+--------------------------+
     |Availability   | developer/versioning/git |
     +---------------+--------------------------+
     |Stability      | Uncommitted              |
     +---------------+--------------------------+
NOTES
     This software was built from source available at
     https://java.net/projects/solaris-userland.  The original
     community source was downloaded from  http://git-
     core.googlecode.com/files/git-1.7.9.2.tar.gz

     Further information about this software can be found on the
     open source community website at http://git-scm.com/.






Git 1.7.9.2          Last change: 02/22/2012                    1