Dist::Zilla::Plugin::Git::Init - initialize git repository on dzil new


Dist-Zilla-Plugin-Git documentation  | view source Contained in the Dist-Zilla-Plugin-Git distribution.

Index


NAME

Top

Dist::Zilla::Plugin::Git::Init - initialize git repository on dzil new

VERSION

Top

version 1.111590

SYNOPSIS

Top

In your profile.ini:

    [Git::Init]
    commit_message = initial commit  ; this is the default
    remote = origin git@github.com:USERNAME/%{lc}N.git ; no default
    config = user.email USERID@cpan.org  ; there is no default

DESCRIPTION

Top

This plugin initializes a git repository when a new distribution is created with dzil new.

Plugin options

The plugin accepts the following options:

* commit_message - the commit message to use when checking in the newly-minted dist. Defaults to initial commit.
* config - a config setting to make in the repository. No config entries are made by default. A setting is specified as OPTION VALUE. This may be specified multiple times to add multiple entries.
* remote - a remote to add to the repository. No remotes are added by default. A remote is specified as NAME URL. This may be specified multiple times to add multiple remotes.

Formatting options

You can use the following codes in commit_message, config, or remote:

%n

A newline.

%N

The distribution name. You can also use %{lc}N or %{uc}N to get the name in lower case or upper case, respectively.

AUTHOR

Top

Jerome Quelin

COPYRIGHT AND LICENSE

Top


Dist-Zilla-Plugin-Git documentation  | view source Contained in the Dist-Zilla-Plugin-Git distribution.