mercurialhgignore

Is there an hgignore.io?


I use git for school, but mercurial for work.

Is there an equivalent of gitignore.io for mercurial?


Solution

  • Though there does not seem to be an hgignore.io, you can use any ignore file generated by gitignore.io by simply placing syntax: glob on the first line.

    .hgignore
    syntax: glob
    
    # Created by https://www.gitignore.io/api/java,eclipse,netbeans,intellij
    
    ### Eclipse ###
    
    .metadata
    bin/
    tmp/
    *.tmp
    ...
    

    More info about .hgignore files.