Link Your Visual Application to a Git Repository

After you provide credentials for your Oracle Visual Builder Studio account, you can create a link between your visual application and a Git repository of your Oracle Visual Builder Studio project.

Linking your application to the branch of a Git repository lets you pull source files from and push source files to the branch, for example, to create a copy of an application by pulling the source files into a new visual application.

The Git repository and branch must exist in your Oracle Visual Builder Studio project before you can link it to your visual application. When selecting the repository branch that you want to use, you will see an up-to-date list of the branches that are available. If you do not see the branch you want to use, you should check that the branch exists and that you are using the correct credentials. You cannot use Oracle Visual Builder to create repositories or branches.

To link a visual application to a branch in a Git repository:

  1. Open your visual application.
  2. Click the Git icon and select Link Visual Builder Studio Git Repository.

    The dialog box displays the location of a Git repository if one is already linked to your visual application.

  3. Click Add Link to open the Link Git Repository dialog box.
  4. In the URL with Credentials field, select the URL of the account that you want to use.

    The drop-down list displays the Oracle Visual Builder Studio accounts that you've provided credentials for.

  5. Select the project, the Git repository, and the repository branch.

    The drop-down list displays the projects, repositories, and branches that are available to you in the instance. The branches and repositories shown are determined by the project you select.

    Once you select a branch, the Branch Head field shows the ID of the latest revision on the remote branch in Visual Builder Studio. HEAD is a special reference to the latest revision in your local copy of the branch in Visual Builder. You can choose to set HEAD either to the remote branch head or select Use Custom Head to set it to any revision ID (which is a 40-character SHA-1 hash). See Get the Revision ID of a Commit in Building Responsive Applications with Visual Builder Studio for information on how you can find a particular revision ID.

  6. Click Save Configuration, then Close.
You can now use the push and pull commands in the Git menu of your visual application.