Github And DBeaver
Hopefully, you are regularly using both DBeaver and GitHub. But did you know that you can link them together?
If you are running DBeaver Community, you will have to install some software that is built into the Pro versions.
1. Install Git Extension (Community Edition)
- Go to Help -> Install New Software.
- In the "Work with" field, enter:
https://dbeaver.io/update/git/latest/. - Check the box for DBeaver Git Support, click Next, and follow the prompts to finish and restart DBeaver.
2. Configure GitHub Authentication
GitHub requires a Personal Access Token (PAT) rather than your standard account password for DBeaver's connection:
- Generate Token: On GitHub, go to Settings -> Developer Settings -> Personal access tokens -> Tokens (classic).
- Permissions: Select all
reposcopes andread:orgunderadmin:org. - Copy Token: Save the generated token securely; you will use it as your password in DBeaver.
3. Connect/Clone a Repository
To link your DBeaver projects to GitHub:
- Clone Existing Repo: Go to File -> Git -> Clone Repository (or Create Project from Git in the Projects tab).
- Enter URI: Paste the repository URL (HTTPS) from your GitHub repository page.

My GitHub is listed
Credentials:- User: Your GitHub username (or simply
git). - Password: Paste your GitHub Personal Access Token.
- User: Your GitHub username (or simply
- Finish: Select the branches to clone and define a local directory for storage.
4. Git Operations in DBeaver
Once connected, you can manage your files via the Projects tab:
- Commit/Push: Right-click a project or file and select Team -> Commit. In the "Git Staging" tab, stage your changes, enter a message, and click Commit and Push.
- Pull: Right-click the project and select Team -> Pull to fetch the latest updates from GitHub.
- AI Integration: You can also connect DBeaver to GitHub Copilot for SQL auto-completion by authorizing it under Engine settings.




Comments
Post a Comment