Fields Used to Configure a SCM Git Instance

The following settings are used to configure a SCM Git instance.

Setting Used to Configure an SCM Git Instance

SCM Git Instance Setting

Description

Git Repository URL(s)

Enter (or manage) one or more the repository URLs. You can enter a maximum of 50 URLs.

For more information about adding and managing URLs in this field, see Adding and Managing Repository URLs in the “Git Repository URL(s)” Field.

Git Username

Provide the user name for authenticated access to all repositories listed in Git Repository URL(s) for this instance.

Leave this and the Git Password field blank for an “anonymous” or SSH access. The blank values force the system to look for an SSH key pair on the server instead of attempting to verify a user name and password. (The Code Insight Installation & Configuration Guide provides for instructions on configuring Git over SSH.)

Consult the Code Insight System Manager to ensure you are using the correct user credentials.

Git Password

Enter the password associated with the user name provided.

Leave this and the Git Username field blank for an “anonymous” or SSH access.

See the Git Username description for more information.

Adding and Managing Repository URLs in the “Git Repository URL(s)” Field

The following describes how to manage repository URLs in the Git Repository URL(s) field.

Adding URLs
Editing a URL
Deleting a URL

Adding URLs

Use following instructions to add URLs to the Git Repository URL(s) field.

To add a URL:

1. Click the add icon above the Git Repository URL(s) field, and enter the URL in the text box that is displayed. The URL should be in one of these basic formats:
http(s)://<host.xz>/<path>/to/repo.git 
<user>@<host>:<path>/repo.git 

Optionally, add a specific branch name, commit ID, or tag name to the end of the URL to specify a specific view of the repository. Use the appropriate delimiter to separate any of these elements from the main URL:

For a specific branch, use ~~ before the branch name.
For a specific tag, use ^^ before the tag name. (A tag marks a specific point in time in the history of the repository, such a version release or a bug fix.)
For a specific commit, use >> before the commit ID.

Note:Because these delimited elements are mutually exclusive, you can add only one to a given URL. While you can save a URL that has multiple delimited elements, the test and synchronization processes will flag the URL as invalid.

2. (Optional) Repeat the previous step to add another URL. You can enter a maximum of 50 URLs.

Examples

The following are example URLs that use the various formats described:

git@git.eng.flexera.com:org1/repo1.git 
git@git.eng.flexera.com:org1/repo2.git>>Commit123 
git@git.engi.flexera.com:org1/repo3.git~~dev-branch 
git@git.eng.flexera.com:org1/repo4.git^^bug-fix-4 
https://github.com/scaqaadmin/testgit_fnci.git^^v2018r1 
https://github.com/scaqaadmin/testgit_fnci>>217b44c0eb2b47bb43e22772ef109711ee5cfb3a 

Editing a URL

Use this procedure to edit a URL in the Git Repository URL(s) field.

To edit a URL:

Click within the URL and edit it as needed within its text box.

Deleting a URL

Use this procedure to delete a URL from the Git Repository URL(s) field.

To delete an URL:

1. Click within the URL to select it.
2. Click the remove icon .