If I want some part even inside a file to not be versioned i.e. like a password or likewise, is there a way to tell mercurial to do this?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. You would have to move the stuff you don’t want versioned into a separate file. Then just don’t track that file in the repo.
How you accomplish that depends on your development stack. If it is a project that is compiled, including it as an embedded resource allows you to compile it in and retrieve the value at runtime. Doing some sort of
includeof the separate file is another option.