GitHub is a cloud-based platform that hosts Git repositories and enables collaboration through version control, issue tracking, and integration with CI/CD tools.
This guide describes how to link a SQL Server database in dbForge Studio for SQL Server to a GitHub repository.
1. Sign in to your GitHub account.
2. In the upper-right corner of the page, select the + menu, then select New repository.

3. On the Create a new repository page, enter a name and optional description.
4. Set the repository visibility:
5. Optional: Select initialization options:
The default name of the branch is main. To change the name, select settings under the options.
Note
If you import an existing repository, skip this step.
6. Click Create repository.
1. Create an empty folder on the disk of your computer where the local repository will be stored.
2. In GitHub, go to Repositories and select the repository you want to clone.
3. Click Code, select HTTPS, and copy the repository URL.

4. Open Command Prompt (CMD).
5. Navigate to the empty folder you created.
Tip
Use the
cdcommand to navigate to a specific folder in the command prompt.
6. Clone the repository by running:
git clone <repository-url> .
Tip
Include a period (.) at the end of the command to clone the repository into the current folder.
7. If no files were added during repository creation, run:
git commit --allow-empty -m initial
git push

1. In Database Explorer, right-click the database you want to link and select Source Control > Link database to Source Control.
Alternatively, on the top menu, select Database > Link Database to Source Control.
2. In the Link Database to Source Control dialog, click + in the Source control repository field.
Note
By default, dbForge Studio automatically selects the repository that was previously linked.
3. In the Source Control Repository Properties dialog, enter the required repository settings:
Note
To work with a remote repository, you must first create a local clone using the
git clone <url> <path>command or a Git GUI tool. Enter the path to that local folder (not the remote URL) in the Repository folder field.You can also specify a subfolder within the repository, excluding the
.gitfolder.
Warning
The Repository folder must point to a local folder. Do not enter a remote URL.

Note
Ensure the repository has at least one commit before proceeding.
4. Choose a database development model:
5. To connect the database to the repository, click Link.

The Refresh window opens and displays the progress of the refresh operation.
After the database is linked, it appears in Database Explorer with the source control icon:

After linking the database, your next step depends on whether the repository is new or already in use by your team:
In the Local changes section of the Source Control Manager, select the objects you want to add to version control, then click Commit.
For instructions, see Commit changes.
In the Remote changes section, select the objects you want to retrieve, then click Get Latest.
Note
The Get Latest option is available only in the dedicated development model.
For instructions, see Get the latest version.