I generally try to have support for this in the application, using a `.local` config file override which is in .gitignore. If one person has this trouble, chances are the rest of the team does too, and making this change is usually less time than the team collectively spends messing with it in a week.
Sometimes there's an existing workflow everyone just accepts (project in a specific path; some dependency manually installed locally; specific HOSTS alias to the database server IP; etc) but so long as you don't break that while also making it better/easier, I've found it's usually accepted.
* Rename the configuration file in the repository to add an `.example` suffix (preferably, to an empty `-local` file if includes exist)
* As part of the build system, copy all `.example` files to remove the suffix, but only if they don't already exist.