Skip to content

Instantly share code, notes, and snippets.

@cesclong
cesclong / Split config.sh
Last active March 19, 2026 07:30
新 2. 生成【纯配置分支】(只留配置,代码=develop)
git checkout 你的分支名
git checkout -b feat/only-config
git ls-files -z | grep -zvE '\.(json|yml|yaml|env|conf|ini|properties)$' | xargs -0I{} git checkout develop -- {} 2>/dev/null
git add .
git commit -m "chore: 仅配置改动,代码恢复到 develop"