Skip to content

Project team work

DBeaver is fully integrated with the Git team work/version control system. You can keep your project configuration, scripts, diagrams, bookmarks and other artifacts in a Git repository.

This extension is included in the EE version. Also it could be installed to CE version manually.

Marketplace URL:https://marketplace.eclipse.org/content/dbeaver-git-support

P2 repository URL:https://dbeaver.io/update/git/latest/

Create Repository

Share Existing Project

  • Open Projects tab, then choose Project that you need to share and choose Team - Share project from the context menu

image

  • Create a new local repository or choose an existing one.

image

  • Create Repository at GitHub or use the URL of the existing one.

  • Commit the project by right-clicking the project node and selecting Team - Commit… or Ctrl+# from the context menu. Enter a commit message (the first line should be headline-like, as it will appear in the history view) and hit the Commit button. If the commit was successful, the question icons will have turned into repository icons.

image

Then push changes to a remote repository using Push HEAD button.

You can learn more here

Cloning existing repositories

  1. Choose Create Project from Git button at Projects Tab or File - Git - Create Project in Main menu

image

  • On the first page of the wizard enter the location of the remote repository:

image

  • On the next page choose which branches should be cloned from the remote repository:

image

  • On the next page define where you want to store the repository on the local file system and define some initial settings.

image

  • Choose the type of wizard you want to use and then finish repository cloning. The project should now appear in the Navigator/Project Explorer.

image

More information could be found here

Work with Project (Connections, Scripts, etc.)

If some changes were made, e.g., Connection, Script or ERD was created, deleted or changed and you want to update your remote repository, you should:

  1. Go to the Context menu of the project (Projects tab) and choose Team - Commit

image

  • Git Staging tab is opened at the bottom of the screen. Unstaged Changes are shown here. Add needed changes to the index using Add Selected files to the index or Add all files to the index button (highlighted at the picture), input commit message and then Commit changes (Commit button or Ctrl+Enter). Commit appears at the History tab (Main menu: Window - Show view - Other - Version Control(Team.md) - History).

image

  • At the second step also could be used Commit and Push button. In case you need to Push changes, it could be done from Project context menu (Team - Remote - Push) or from History tab in case it is needed to push not all commits (right click at needed commit - Push commit). Changes should appear in your git repository.

More information could be found here

Pulling New Changes from Upstream Branch

Right-click on a project in the Project Tab and select Team - Pull or right-click on a repository in the Git Repositories view and select Pull to pull new changes from the upstream branch your local branch is tracking.

If you did no local change or want to discard your local changes, use Team - Reset