git merge without specific file code example
Example 1: git branch specific files
mkdir tmpcd tmpgit initgit commit --allow-empty -m "chore: Initial commit"
Example 2: git branch specific files
echo 'email.json merge=ours' >> .gitattributesgit add .gitattributesgit commit -m 'chore: Preserve email.json during merges'