Skip to main content

GitHub - Tips on Finding Git / GitHub Repository URLs

TIP 1 – Find GitHub Repository URL

Tip to find the Github repository URL:

1. Log in to your GitHub account and enter the Dashboard.


2. Select a repository from the Your Repositories list.


3. Click <Clone or Download> button and copy the repository link (for SSH).


You can also click Use HTTPS and then click copy the link as a regular URL.

TIP 2 – Find Git Repository URL

Tip to find the Git repository URL:

In the GIT shell, navigate to your repository folder and run the following command:

git config --get remote.origin.url
  • The Repository URL should be in a format similar to: [email protected]:<user>/<project>.git

  • Alternatively, if you need to specify the port, use a convention similar to: ssh://[email protected]:<port>/<user>/<project>.git.

  • If your Git source control system requires secure authentication (public key uploaded to repository), select SSH authentication and insert a matching private key either by pasting the text or by uploading the file.

  • If you do not yet have an SSH key pair, follow these instructions (check by following step 1, Generate by following step 2, Add to your GIT account by following step 4).

Tip for Stash repositories with SSH:

Older Stash versions make use of the weaker Diffie-Hellman key exchange algorithm that is now disabled by default in Git, GitHub, and the Bitbucket Server. In order to allow Checkmarx to connect to Stash repositories via SSH, you must first allow the Git installation on the Checkmarx CxSAST Manager server to use this key exchange algorithm.

  • Add the following two lines to Git’s ssh_config file (C:\Program Files\Git\etc\ssh\ssh_config):

       Host <hostname>
                        KexAlgorithms +diffie-hellman-group1-sha1

Tip to copy an SSH Key pair from GIT:

  • Open GIT Bash and run:

clip < ~/.ssh/

GIT copies the contents of to your clipboard.

  • Upload Public Token to the repository.

  • In GIT Bash run:

clip < ~/.ssh/id_rsa