This process requires an existing git host repository. Obtain the HTTPS 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 HTTP/HTTPS repository git clone URL. Initially, this URL can be obtained from the repository's project page.
Enter login credentials for this repository integration. If 2FA is enabled for this account, enter the personal access token (PAT) for the password instead.
Enable/disable SSL Verify for this repository integration.
Click Add integration to complete this setup.
The repository is now connected for use with Jira.
Setup next features to improve Git user experience