The git
utility is used to manage Git repositories of a domain
through CLI.
Note: This utility is available when the Git extension is installed in
Plesk and is used with the plesk ext
utility.
By using this utility, you can perform the following tasks:
- view the list of all Git repositories on a domain or on all domains
- create or remove a Git repository
- update a Git repository settings
- get information on a Git repository
- deploy changes from a Git repository to a target directory
- fetch a remote Git repostory for a Git repository of the Using
remote Git hosting type - get public key of a domain
- get information on the last commit to a Git repository
For details about using Git repositories, refer to the Administrator’s
guide.
Usage
plesk ext git <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command creates Git repository example1 of the Using
local repository type for the domain example.com:
plesk ext git --create -domain example.com -name example1
Commands
Command | Description | Example |
---|---|---|
--list |
Displays the list of Git repositories on all domains (by To display repositories on a specific domain, use with the |
To display the list of Git repositories of the domain plesk ext git --list -domain example.… |