Before you begin
- The configuration repository is available on the Pro and Enterprise plans. Contact support if you do not see the picker.
- You need the organization admin role.
- The repository has to be connected to Gitar already. AWS CodeCommit repositories are not selectable.
What it holds
Shared configuration includes these paths:.gitar/config/apply.md remains per repository and is not inherited.
Shared criteria add conditions to auto-approve and auto-merge. They do not enable either feature or choose a merge method.
If Require .gitar/config/merge.md is enabled, each repository still needs its own nonempty .gitar/config/merge.md on its default branch. A shared file does not satisfy that requirement.
See per-PR overrides for bypassing merge criteria and the required-file setting.
Local rules and skills take precedence. Among shared repositories, the first selected repository wins a duplicate rule or skill. The settings list shows that order.
Instruction files combine guidance from every selected repository, followed by local instructions. They share the existing instruction budget, so adding repositories does not multiply that budget. A local instruction file does not replace shared instructions.
All selected repositories apply organization-wide. GitLab group assignments are not supported.
Set the configuration repository
1
Create or pick a repository
Any connected repository works. A repository named
.gitar is a clear place for it.2
Commit your shared configuration to it
The same paths a repository uses for its own:Add whichever you need. See Writing a skill, Rules and Custom review instructions for each file format. Push to the default branch.
3
Name it in settings
Go to Settings -> Configuration. At the foot of the Repositories card, under Configuration repositories, select Add repository and pick a repository. Repeat for up to three repositories.
4
Confirm what Gitar found
Saving reads the selected repositories and lists discovered skills under each repository. Connection and read failures appear separately for each selection.The list shows skills only. Inherited rules and review instructions are not listed on the card, so confirm those on the next run in a repository that inherits them.
Where Gitar looks
Automation rules come from.gitar/rules/ and custom review instructions from .gitar/review/. Both are read recursively, so subdirectories work.
Gitar also reads the same AI instruction files as in a local repository, including CLAUDE.md, AGENTS.md, .cursorrules, .cursor/rules/ and .claude/rules/. These load automatically from the configuration repository’s root. Both rule directories are read one level deep.
Keep shared Claude rules directly in .claude/rules/. No symlink to .gitar/review/ is needed. These files provide instructions, while .gitar/rules/ defines automation workflows.
Keep files referenced with @ inside a fetched configuration directory, such as .gitar/instructions/. Gitar fetches the supported configuration paths, not the entire shared repository. An include pointing to an unrelated path such as docs/standards.md is not available to shared instructions.
Skills have six directories, in this order:
.gitar/skills/ with the same name as an inherited one and the local version is what runs.
When changes take effect
A push to the default branch can take up to 15 minutes to reach the next run. A run keeps the shared revisions it has already fetched. Merging a policy change does not update an in-progress review. To test instruction, rule, or skill edits before they land, open a PR in the configuration repository itself. Gitar reviews that PR using the version on its branch. Approval and merge criteria still come from the default branch, so that PR cannot change its own approval or merge policy.Troubleshooting
A failed fetch does not fail the review or prevent other selected repositories from loading. It can still withhold automatic approval or merge.
If shared approval policy cannot be verified, Gitar withholds automatic approval for that run. If shared merge policy cannot be verified, Gitar withholds auto-merge unless a per-PR override bypasses merge criteria.
Approval can still succeed when its own policy is verified and its criteria are met.
The card shows the connection state and the last save-time read.
Removing and re-adding a repository moves it to the end of the list and can change which shared rule or skill wins a name collision. Check the resulting order.
An inherited rule never runs
Check the repository under review for a rule file of the same name under.gitar/rules/, which takes precedence.
Then check that the repository runs its own rules at all. Inherited rules need the same plan as committed ones, so if .gitar/rules/ in the repository does nothing, the configuration repository’s will not run either.
See Debugging for the rest.
An inherited skill never runs
Check the repository under review for a skill of the samename, which takes precedence. Then check the name against the slugs Gitar holds for integrations, like jira, linear and slack. A skill named after one is dropped, whether or not you have that integration on, so rename it.
After that, see Why is my skill not being used?.