Skip to content

Commit ad8ef0d

Browse files
committed
Add .gitattributes to keep local application.yml and api.ts and helper script
1 parent ab3b40e commit ad8ef0d

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Keep local versions of these files when merging from main
2+
backend/src/main/resources/application.yml merge=ours
3+
frontend/lib/api.ts merge=ours

scripts/setup-local-branch.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Setup script for local branch merge driver
2+
# Run this after checking out the 'local' branch to configure the merge driver locally.
3+
4+
# Ensure we're in repo root
5+
Set-Location -Path $PSScriptRoot\..\
6+
7+
# Configure the 'ours' merge driver locally to always keep our version
8+
git config --local merge.ours.driver true
9+
10+
Write-Host "Configured merge.ours.driver true in local git config"
11+
Write-Host "Remember to commit .gitattributes on branch 'local' with your local-only files changed."

0 commit comments

Comments
 (0)