When connecting to a custom git repository, using the HTTPS method you may come across the cryptic error message
Unknown Git error occurred.
It is possible that the repository that you are trying to connect to is configured to disable HTTPS connections, and the workaround is for you to connect using the SSH option instead. This document shows you how to do this:
On the source control and services section of the app, click on
Add new custom Git repository.
In your git repo find the repo address in the SSH format
Enter the repo address
Set up the SSH key by copying the
Public keyinto your git provider. (If you are using GitHub, go to https://github.com/settings/ssh/new to do this)
Congratulations, you are now ready to test the SSH connection!