How to Use Git in the DVT Eclipse IDE - How to Set-up a Git Project

Description

This video presents the commonly used flows for setting up git support for a DVT project.

Explore the design and verification tools: https://www.dvteclipse.com
Or request a license: https://www.dvteclipse.com/request-license

Transcript

This video presents the usual flows for setting up Git support for a DVT project.

Automatic Git Setup When Creating or Importing a Project

When you create or import a project using the File > New DVT Project Wizard and point to a directory within a Git repository, the Git setup is done automatically. Notice the newly added repository in the Git Repositories view and the Project Explorer decorators.

Enabling Git Support After Configuring a DVT Project

If you enable Git support after having already configured a DVT project, right-click on the project and go to Team > Share Project, then follow the wizard steps.

Using the DVT CLI Shell Script

If you use the DVT CLI shell script to automate project creation, simply point to the .git directory within a repository using -git.

Adding Existing Local Repositories or Cloning from a Server

From the Git Repositories view, you can add an existing local repository or clone, for example, from a server. Assuming that the repository already contains configured DVT projects, you should now import them. Right-click on the working tree, Import Projects.

Working with DVT Projects Outside Any Git Repository

All the flows described so far assume that your DVT project — that is, the directory containing .dvt and .project — is placed in a directory below or at the same level as the repository.

Sometimes you might need to place the DVT project in a directory outside any Git repository, for example when it contains files from multiple Git repositories. In such situations, you can still use the Git plugin functionality for all repositories independently. However, decorators and context menu actions will not be available in the Project Explorer.