Project's database url should keep in GIT manage ?

Since the project’s database url keep in GIT manage,I have to modify the URL manually when i switch between HOME and Office.
When project share to my team,the probel will be prominent.



What would you suggest?

I saw that database url occurs in two place: build.gradle and context.xml in core module.
In my humble opinion, store the database url to only one place,may be a properties file, then reference the file as needed.
The properties file will not be keepd in VCS。
Is that feasible?