.gitignore for Perl
25 ignore rules for Perl, ready to copy into your repository.
High-level programming language
The complete .gitignore for Perl
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:31:14 UTC
# Technologies: Perl
### Perl ###
!Build/
.last_cover_stats
/META.yml
/META.json
/MYMETA.*
*.pm.tdy
*.bs
cover_db/
nytprof.out
/.build/
_build/
Build
Build.bat
inc/
/blib/
/_eumm/
# Object file
*.o
/*.gz
/Makefile
/Makefile.old
/MANIFEST.bak
/pm_to_blib
/*.zip
/local/
/.carmel/
What these Perl rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
General
| Pattern | What it ignores |
|---|---|
!Build/ |
General |
.last_cover_stats |
General |
/META.yml |
General |
/META.json |
General |
/MYMETA.* |
General |
*.pm.tdy |
General |
*.bs |
General |
*.o |
Object file |
Devel::Cover
| Pattern | What it ignores |
|---|---|
cover_db/ |
Devel::Cover |
Devel::NYTProf
| Pattern | What it ignores |
|---|---|
nytprof.out |
Devel::NYTProf |
Dist::Zilla
| Pattern | What it ignores |
|---|---|
/.build/ |
Dist::Zilla |
Module::Build
| Pattern | What it ignores |
|---|---|
_build/ |
Module::Build |
Build |
Module::Build |
Build.bat |
Module::Build |
Module::Install
| Pattern | What it ignores |
|---|---|
inc/ |
Module::Install |
ExtUtils::MakeMaker
| Pattern | What it ignores |
|---|---|
/blib/ |
ExtUtils::MakeMaker |
/_eumm/ |
ExtUtils::MakeMaker |
/*.gz |
ExtUtils::MakeMaker |
/Makefile |
ExtUtils::MakeMaker |
/Makefile.old |
ExtUtils::MakeMaker |
/MANIFEST.bak |
ExtUtils::MakeMaker |
/pm_to_blib |
ExtUtils::MakeMaker |
/*.zip |
ExtUtils::MakeMaker |
Carton/Carmel
| Pattern | What it ignores |
|---|---|
/local/ |
Carton/Carmel |
/.carmel/ |
Carton/Carmel |
How to use this .gitignore for Perl
- Copy the Perl rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.