This process requires an existing git host repository. Obtain the SSH git clone URL from the repository home of your git host service. The figure below is an example from GitHub:
To connect a git repository to Jira via the Git Integration for Jira app:
On your Jira dashboard menu, go to Apps ➜ Git Integration: Manage integrations.
On the Manage integrations page, click Add integration.
On the following screen, click on the Single git repository integration panel for your integration type.
The following screen is displayed.
For the Host URL, enter the SSH repository git clone URL. Initially, this URL can be obtained from the repository's project page. Configuration options for SSH settings are displayed.
For SSH credentials, upload or paste the private SSH key in the respective box. If your SSH key has a passphrase, enter it on the provided box.
Click Add integration to complete this setup.
The repository is now connected for use with Jira.
Setup next features to improve Git user experience