This Perl 5 script requires no dependencies, and will convert the .hgignore file in the current directory to a .gitignore file.
It is intended to be used after a Mercurial repository has been converted to a Git repository.
Usage: hgignore-to-gitignore.pl
git add .gitignore # etc., commit, etc.
Matt Gumbley, Feb 2020 [email protected] @mattgumbley