Managing Git Repository Settings
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. For more information on Git, see https://git-scm.com/.
A Git repository is the .git/ folder inside a project. This repository tracks all changes made to files in the
project, building a history over time.
This section describes how to set up a connection to a Git repository, configure Git functionality, and resolve conflicts when modifying the same version of the project.
Setting Up a Connection to a Git Repository
When Git is selected as the repository type, define values for the following connection properties:
| Parameter | Description |
|---|---|
| URL | URL for the remotely located Git repository or file path to the repository stored locally. If a valid Git URL is provided, the repository is treated as remote; if a local path is provided, such as /openl/repositories/design or, when OpenL Studio runs on Windows, C:\openl\repositories\design, it is treated as local. |
| Login | Username for accessing a remote Git repository. Ignored for local repositories. |
| Password | Password for accessing a remote Git repository. Ignored for local repositories. |
| Branch | Project branch that is used by default. |
| Protected branches | Branches that can be set as protected from any modifications. For more information on protected branches, see Using Protected Branches. |
| Changes check interval | Repository changes check interval in seconds. The value must be greater than 0. Ignored for local repositories. |
| Connection timeout | Repository connection timeout in seconds. The value must be greater than 0. Ignored for local repositories. |
The following additional parameters are available for Design Repositories only, in the New Branch section:
| Parameter | Description |
|---|---|
| Default branch name | Pattern for a default branch name. The default value is {project-name}/{username}/{current-date}. |
| Branch name pattern | Additional regular expression used to validate new branch names. |
| Invalid branch name message hint | Error message displayed when a branch name does not match the additional regular expression. |
The location where remote repositories are cloned is controlled by the following property:
| Property | Default value | Description |
|---|---|---|
| repo-git.local-repositories-folder | ${openl.home}/repositories | Directory where cloned remote repositories are stored locally |
The core.autocrlf setting of the Git configuration of the server, such as the .gitconfig file of the account that
runs OpenL Studio, does not apply to the repositories of OpenL Studio: a file keeps the line breaks it is written with.
A .gitattributes file committed to the repository still applies: its text and eol attributes convert the line
breaks of the files they match.
If the password is changed on the server side, after a failed login to the remote Git server, OpenL Studio displays the Problem communicating with ‘Design’ Git server, will retry automatically in 5 minutes. error and waits before the next attempt to prevent a user account from blocking. By default, the number of attempts is unlimited. When the maximum number of attempts is reached, OpenL Studio stops login attempts, and the Problem communicating with ‘Design’ Git server, please contact admin. error is displayed. Define the following properties in the properties file to configure this behavior:
| Property | Description |
|---|---|
| repo-git.failed-authentication-seconds | Time to wait after a failed authentication attempt before the next attempt. It is used to prevent a user account from blocking. The default value is 300 seconds. |
| repo-git.max-authentication-attempts | Maximum number of authentication attempts. After that, a user can be authorized only after resetting the settings or restarting OpenL Studio. No value means unlimited number of attempts. If the value is set to 1, after the first unsuccessful authentication attempt, all subsequent attempts are blocked. |
Customizing Git Commit Comments
For Design Repositories, a Comments section allows configuring comment validation. Git repositories store the comment directly as the Git commit message.
| Field | Description |
|---|---|
| User message pattern | Regular expression a commit comment must match; spaces around it are ignored. Leave it empty, the default, to accept any comment. |
| Invalid user message hint | Error message displayed when the comment does not match the pattern. |
The comment OpenL Studio suggests for each operation is the same for all repositories and is not configured. The user can edit it before committing, and it is checked against the User message pattern. When a request of the REST API carries no comment, OpenL Studio writes the same comment.
| Operation | Suggested comment |
|---|---|
| Saving a project | Project Bank Rating is saved. |
| Creating a project | Project Bank Rating is created. |
| Copying a project | Copied from: Bank Rating. |
| Saving a project opened on an older revision | Restored from revision of John Smith on 06/22/2026 09:02:42 PM. |
The comment of a restored revision names the author of that revision and the moment it was saved, in UTC.