Using git-remote configuration to perform SSH tasks.
Consider this:
# from within your git repository
$ git remote add web1 user@web1:/var/www/html
$ git ssh web1 pwd -Pis the same as running:
$ ssh user@web1
$ cd /var/www/html
$ pwd -Pgit-sshsupports all SSH options, including pseudo-tty (-t/-T)- As long as the git remote is ssh-able,
git-sshwill work. Supported git protocols are:ssh://,git+ssh://,host:directory - when no command is provided,
git-sshwill open a remote shell in the designated directory.
git ssh [ssh options] <remote> [<command>]