Page History
...
-Server <String>
Specifies the hostname and optionally the port of the Git server Server for which credentials are added.
...
-Password <SecureString>
Specifies the passwword password for Git authentication. Use of passwords is considered insecure and
a larger number of Git servers Servers will deny password authentication.
The password has to be specified from a SecureString data type, for example like this:
* $securePassword = ConvertTo-SecureString 'root' -AsPlainText -Force
...
-AccessToken <String>
Specifies an access token for authentication that is configured with the Git SeverServer.
Access tokens are a replacement for passwords and do not tend to increase security.
...
-KeyFile <String>
Specifies the path to a file that holds the private key. The corresponding public key has to be configured with the Git serverServer.
Use of private keys includes the following options:
* Empty path to private key file: The private key file is looked up from its default location
** Unix: ~/.ssh/id_rsa
** Windows: %USERPROFILE%/.ssh/id_rsa
* file name of private key file: The private key file is looked up from the directory JETTY_BASE/resources/joc/repositories/private
* path to private key file: The absolute path to the location of the private key file.
...
Adds credentials for access to a Git server Server by password authentication.
...
Adds credentials for access to a Git server Server using a private key file specified by its absolute path.