git branch specific files

C++
git config --global merge.ours.driver truemkdir tmpcd tmpgit initgit commit --allow-empty -m "chore: Initial commit"echo 'email.json merge=ours' >> .gitattributesgit add .gitattributesgit commit -m 'chore: Preserve email.json during merges'
Source

Also in C++: