I understand this question can be general but, specifically with regards to ASP.NET MVC, what’s the best way to keep passwords locally but not in git/svn? My database connection string is currently in web.config — is it best to somehow include a file in web.config that isn’t in git? What do you folks do?
I understand this question can be general but, specifically with regards to ASP.NET MVC,
Share
I use Windows Auth with my databases, so the connection string contains a server name but not a username/password.
For Machines where I can’t use Windows Auth, I use web.config transforms and add the web.dev.config to my .gitignore.