Scroll to navigation

Dist::Zilla::Plugin::Config::Git(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::Config::Git(3pm)


Dist::Zilla::Plugin::Config::Git - Plugin configuration containing settings for a Git repo


    [Config::Git / Git::main]
    remote        = origin
    local_branch  = master
    remote_branch = master
    allow_dirty   = dist.ini
    allow_dirty   = README
    allow_dirty   = qr{\w+\.ini}
    changelog     = Changes
    git_config = Git::main
    git_config = Git::main
    ; etc.


This is a configuration plugin for Git repo/branch information. A configuration plugin is sort of like a Stash, but is better suited for intra-plugin data sharing, using distro (not user) data.

Why use this? To provide a standard set of information to other Git plugins easily, especially if the repo data is non-standard, or if you need more than one set of data.



Name of the remote repo, in standard Git repo format (refspec or git URL).

Default is "origin".


Name of the local branch name.

Default is "master".


Name of the remote branch name.

Default is "master".


Filenames of files in the local repo that are allowed to have modifications prior to a write action, such as a commit. Multiple lines are allowed. Any strings in standard "qr" notation are interpreted as regular expressions.

Default is "dist.ini" and whatever changelog is set to.


Name of your change log.

Default is "Changes".


Kent Fredric and Karen Etheridge for implementation discussion. Graham Knop for continuous code reviews.


The project homepage is <>.

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <> to find a CPAN site near you, or see <>.


Internet Relay Chat

You can get live help by using IRC ( Internet Relay Chat ). If you don't know what IRC is, please read this excellent guide: <>. Please be courteous and patient when talking to us, as we might be busy or sleeping! You can join those networks/channels and get help:

You can connect to the server at '' and talk to this person for help: SineSwiper.

Bugs / Feature Requests

Please report any bugs or feature requests via <>.


Brendan Byrd <>


Graham Knop <>


This software is Copyright (c) 2013 by Brendan Byrd.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
2022-06-16 perl v5.34.0