While debugging I currently have
#if Debug
new NetworkCredential("myUsername","myPassword", "myDomain");
#endif
Would a good solution be to store the password in a file and I read the value (only in debug). And then to add that file to the .gitignore?
Production would never read this value as it gets it from an NtlmAuthenticator from RestSharp of the logged in user.