It's also possible to connect your JIRA instance with any Git repository and not just Bitbucket and GitHub. There is an add-on called Git Integration plugin for JIRA that can be installed for such integrations. Perform these steps:
Navigate to JIRA Administration | Add-ons | Find new add-ons and search for
git
in the search box.In the search result that appears, select Git Integration Plugin for JIRA. Click on the Free trial button to install and evaluate this add-on:
Once the add-on is installed, navigate to JIRA Administration | Add-ons | Git Repositories (under GIT INTEGRATION PLUGIN).
Click on the Add Git Repository button:
In the popup window, click on the Advanced setup link to add a Git repository with more configuration options. On the next screen, enter the Display Name of the Git repository and provide Repository Root of your Git repository. In our example, we will use a local Git repository hosted and located at the
c:\git-repo
location. In the Enable Fetches radio button, select Git repository hosted on same server as JIRA. Also, from the Smart Commits drop-down list, select Enabled and click on the Add button to continue:
Also, click on the Reindex All button in the top-right corner to perform the indexing of the Git repository. As we have enabled the smart commits while configuring the repository, developers can also transition the JIRA issues while they commit the code in Git. To know more about smart commits, read the document at https://confluence.atlassian.com/display/BITBUCKET/Processing+JIRA+issues+with+commit+messages.
Although not free, this add-on opens up a lot of possibilities to use any Git repository in your JIRA instance.