I keep important settings like the hostnames and ports of development and production servers in my version control system. But I know that it\'s bad practice to kee
An option would be to put project-bound credentials into an encrypted container (TrueCrypt or Keepass) and push it.
Update as answer from my comment below:
Interesting question btw. I just found this: github.com/shadowhand/git-encrypt which looks very promising for automatic encryption