How to hide connection string, user name, pw when using source control?

What I find works is to check in a version of the file with blanked or dummy values and then to run: git update-index –assume-unchanged [fileName] Git will then stop monitoring changes to that file allowing you to put the real config info into it without fear of checking it in. If you later make … Read more

How can I back out a merge in Mercurial and later remerge with that branch?

There are many scenarios here where you might want to do this, I’ll make each scenario a headline, so that you can find the scenario that fits your case. Note that I’m still learning Mercurial, and I’d like pointers if something I say is wrong, using the wrong terminology, could be done better, etc. No … Read more

Can I split a Mercurial repository?

The best way to do this is using the ‘convert’ extension. You’ll use mercurial and both source and destination type and then use a –filemap with entries like: exclude path/you/do/not/want rename path/you/do/want . The rename is only necessary if you want to take the parts you’re keeping and move them “higher” in the directory hierarchy.