Commit a .gitspectra.json file to your repository so everyone on your team uses the same conflict detection settings. No cloud sync needed—it's just a file in your repo.
Screenshot
.gitspectra.json file open in VS Code editor
Create .gitspectra.json in your repository root:
{
"$schema": "https://gitspectra.dev/schema/v1.json",
"version": "1.0",
"scope": {
"branches": ["origin/main", "origin/develop"],
"timeWindow": "14d"
}
}Commit and push. Your teammates will automatically use these settings.
Control what commits are analyzed:
{
"scope": {
"branches": ["origin/main", "origin/develop"],
"excludeBranches": ["origin/dependabot/*", "origin/renovate/*"],
"authors": ["alice@company.com", "bob@company.com", "@myteam"],
"excludeAuthors": ["bot@ci.com"],
"timeWindow": "14d"
}
}| Field | Type | Description |
|---|---|---|
| branches | string[] | Branches to check for conflicts |
| excludeBranches | string[] | Branch patterns to ignore (supports *) |
| authors | string[] | Only check commits from these authors |
| excludeAuthors | string[] | Ignore commits from these authors |
| timeWindow | string | How far back to look (7d, 2w, 1m) |
Define your team for better UX:
{
"team": {
"members": [
{
"name": "Alice Chen",
"email": "alice@company.com",
"github": "alicechen"
},
{
"name": "Bob Smith",
"email": "bob@company.com",
"github": "bobsmith"
}
]
}
}Team members show friendly names in the Activity Feed and tooltips.
Customize the UI:
{
"display": {
"showWarnings": true,
"showAvatars": true,
"groupByFolder": true
}
}{
"$schema": "https://gitspectra.dev/schema/v1.json",
"version": "1.0",
"scope": {
"branches": [
"origin/main",
"origin/develop",
"origin/release/*"
],
"excludeBranches": [
"origin/dependabot/*",
"origin/renovate/*"
],
"timeWindow": "14d"
},
"team": {
"members": [
{ "name": "Alice Chen", "email": "alice@company.com" },
{ "name": "Bob Smith", "email": "bob@company.com" },
{ "name": "Carol Jones", "email": "carol@company.com" }
]
},
"display": {
"showWarnings": true,
"showAvatars": true
}
}GitSpectra merges settings from multiple sources:
Team configuration overrides individual settings, ensuring consistency.
Use the JSON schema for autocomplete and validation:
Screenshot
Schema autocomplete showing property suggestions in VS Code
The schema provides:
Consider your .gitspectra.json as code:
If you have VS Code settings you want to share:
.gitspectra.json with equivalent settings