Ok, remember these steps. You will need to do this multiple times a day when you working on this site so you will get code changed by other team members.

Now your site won't work as database.php get reverted back.

What is the solution ? Changing it each time is lot of wasted time for everyone in team. Do you think there can be a solution with out changing password each time ?