Applying Different Git Configurations by Environment
· 2 min read
TL;DR
- The
includeIf
syntax allows you to apply git configuration files only when specific conditions are met. - Useful for separating work and personal environments.
Problems
- Work and personal development environments are separate.
- However, the global git config is set based on the personal environment, causing personal settings to overwrite work settings when syncing configuration files with chezmoi.
- How can work and personal environments be stably separated?