It does not depend on Jira version. You can use Bitbucket for Git, and you will have no problems with integration.
If you do not want to use Bitbucket you can find a plugin in the Atlassian Marketplace, which will let you integrate Git and Jira. For example, this one:
https://marketplace.atlassian.com/apps/4984/git-integration-for-jira?hosting=server&tab=overview
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.