Connect and Sync a Git Repository
Map a Git repository to Reqode subsystems, select the Git branch that supplies implementation data, and verify the import.
Choose a provider
You need permission to manage project integrations, a subsystem to link, and access to the source repository. To change the branch mapping, you also need permission to edit the project branch.
Open Project Settings → Integrations → Add Integration and choose the provider for your repository. Apply its credentials using the provider guide.
| Repository host | Setup guide |
|---|---|
| GitHub.com | GitHub |
| GitLab.com | GitLab Cloud |
| Your GitLab server | GitLab Self-Managed |
| Your Gitea instance | Gitea |
Map a repository to a subsystem
- In Configure → Repositories, select a repository and use Add.
- Choose a Subsystem and enter its Folder from the repository root. Use
/when the subsystem owns the whole repository. - If the repository contains several subsystems, add a mapping for each and give them separate, non-overlapping folders. Select Save.
If you change a folder that has already been imported, review the confirmation. The next eligible sync rebuilds the file catalog and search index for the new folder and preserves imported history.
Link a Git branch and run sync
- On the integration row in Project Settings → Integrations, choose Sync to discover Git branches. Allow the background job to finish.
- Open the intended project branch's details and choose Edit. Under Mappings by subsystem, select the Git branch for the subsystem and save. A Reqode project branch can map to different Git branches for different subsystems.
- Choose Sync again to import files and commits. Reqode imports implementation data from linked code branches marked Active or Merged. For an existing branch mapping, start with a single sync.
Verify the import
Select the same project branch and open Implementation → Files. Choose the subsystem and open a file from the configured folder. Check Implementation → Commits for the expected commit. If the list is empty, check the repository access, folder, and code branch mapping. The sync can discover branches even when no branch has been linked for file import.
For automatic sync after a push, configure the webhook shown in the provider's settings. The provider guides explain which URL, secret, and event to use.