Using the Git features in ER/Studio

From ER/Studio Data Architect
Jump to: navigation, search

ER/Studio Data Architect allows you to integrate with Git repository for storage options and Compare/Merge functionality.

Setting the Git Server and User Account Information

Your first step in integrating Git with ER/Studio Data Architect is setting the Git server and user account information. On the Tools menu, click Git Options.

In the Git Integration dialog, complete the necessary fields. Note that you must use the Test button successfully before the Clone / Update is available. For more information about the fields in this dialog, see Integrating with Git.

Generating a Script File to Git

Using the DDL Generation wizard, users can generate a script file to Git.

To generate Git output for a Physical Model

  1. On the Tools menu, click Generate Database. The DDL Generation wizard appears.
  2. Select the Generate a Script File to Git option on Page 1 of the wizard, as shown in the following image:
    203 Git Integration DDL Generation Page 1.gif
  3. Click the adjacent Connect button. The Git File window appears, showing the currently checked-out branch if the user account already has cloned or updated a repository using the Git Integration window. Note that you can also switch to a different branch or create a new one. Make sure to include a comment in the Commit Message area before clicking OK to save your changes and push this file to the Git repository.
    203 Git Integration Git File.png

For more information about using this wizard, see Generating a Script File or Database.

Using the Compare and Merge Utility with Git

Using the Compare and Merge Utility, users can compare against a file from the Git repository.

To compare against a file from your Git repository

  1. On the Model menu, click Compare / Merge. The Compare and Merge Utility appears.
  2. Select the Compare against a file from Git option on Page 1 of the wizard, as shown in the following image:
    203 Git Integration Compare Merge 1.png
  3. Click the adjacent Connect button. The Git File window appears, showing the currently checked-out branch if the user account already has cloned or updated a repository using the Git Integration window. Note that you can also switch to a different branch or create a new one. Use Version to select a particulate version for the selected file. Once you select a file, the most-recent version is automatically chosen, but you can change that version by selecting the different item from the list.
    203 Git Integration Git File for Compare.png

For more information about using this wizard, see Using the Compare and Merge Utility.

Using Logging

All of the updates and errors received during Git operations appear in a Status dialog and are stored in the git_operations.log located at C:\Users\<user>\AppData\Roaming\Idera\ERStudio\Logs.

See Also