Interconversion of gitignore and hgignore?

I'm just starting to use hg-git to push some mercurial repositories to github, and I'm realizing that if people check them out using git, they'll need a .gitignore file in the repository. Is there any automated way to convert hgignore to gitignore or vice versa?


If you're just using glob syntax in your hgignore, then all you'd need to do is rename it, and it should just work. If you're using regex syntax then it's going to be a different story...

Need Your Help

nested “if”s or more “return” statements?

language-agnostic coding-style conventions

I would like to know which is better in a function (in my case a java method, but I assume it is applicable in more langauges): including nested ifs with few return statements, or no nested ifs wit...

Alternative to overriding with different arguments in java (which is impossible)

java oop

Hi I am facing a design problem which I think it should be quite common:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.