Special Git commands
On a Git client, you can run special commands that extend Git command
functionality. Each special command begins with git clone
.
Special commands work with SSH or HTTPS authentication, and here we show
SSH:
- git clone git@ConnectorHost:@help: Shows Git Connector special command help.
- git clone git@ConnectorHost:@info: Shows Git Connector version information.
- git clone git@ConnectorHost:@list: Lists repositories available to you, based on permissions.
- git clone git@ConnectorHost:@defaultbranch:graphDepot/repo: Shows the default branch set for the repo.
- git clone git@ConnectorHost:@defaultbranch:graphDepot/repo=: Clears the default branch set for the repo.
- git clone git@ConnectorHost:@defaultbranch:graphDepot/repo=branch: Sets the default branch.
For example,
$ git clone git@ConnectorHost:@info
Results in the following output:
git clone git@connector.com:@info Cloning into '@info'... Perforce - The Fast Software Configuration Management System. Copyright 1995-2016 Perforce Software. All rights reserved. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) See 'p4 help legal' for full OpenSSL license information Version of OpenSSL Libraries: OpenSSL 1.0.2j 26 Sep 2016 Rev. GCONN/LINUX26X86_64/2016.2.MAIN-TEST_ONLY/1460278 (2016/11/03). uname: Linux gconn-centos6 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 P4 Info: caseHandling: sensitive clientAddress: xx.x.xx.xxx clientCase: sensitive clientCwd: /home/git clientHost: gconn-centos6 clientName: unknown password: enabled peerAddress: xx.x.xx.xxx:47041 serverAddress: xx.x.xx.xxx:16200 serverDate: 2016/11/07 14:13:41 -0800 PST serverLicense: none serverRoot: /opt/perforce/servers/16200 serverServices: standard serverUptime: 76:01:42 serverVersion: P4D/LINUX26X86_64/2017.1.MAIN-TEST_ONLY/1460278 (2016/11/03) tzoffset: -28800 userName: gconn-user fatal: Could not read from remote repository.
Note
Because the special command is not standard Git syntax, Git cannot parse it, so the command terminates with:
Fatal: Could not read from remote repository.