Dist::Zilla::Plugin::Git::Init(3pm) | User Contributed Perl Documentation | Dist::Zilla::Plugin::Git::Init(3pm) |
Dist::Zilla::Plugin::Git::Init - Initialize git repository on dzil new
version 2.049
In your profile.ini:
[Git::Init] commit_message = initial commit ; this is the default stage = 1 ; this is the default commit = 1 ; this is the default branch = ; this is the default (uses init.defaultBranch config) remote = origin https://github.com/USERNAME/%N.git ; no default push_url = origin git@github.com:USERNAME/%{lc}N.git ; no default config = user.email USERID@cpan.org ; there is no default
This plugin initializes a git repository when a new distribution is created with "dzil new".
The plugin accepts the following options:
Per the documentation for git-remote(1): Note that the push_url and the corresponding URL specified with "remote", even though they can be set differently, must still refer to the same place. What you pushed to the push URL should be what you would see if you immediately fetched from the fetch URL (the URL specified with "remote".) If you are trying to fetch from one place (e.g. your upstream) and push to another (e.g. your publishing repository), use two separate remotes.
This, therefore, is best used in cases where pushing requires authentication, but pulling does not, or if pulling is via git or ssh, but pushing is via https, on the same repository.
You can use the following codes in "commit_message", "config", "remote", or "push_url":
Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Git> (or bug-Dist-Zilla-Plugin-Git@rt.cpan.org <mailto:bug-Dist-Zilla-Plugin-Git@rt.cpan.org>).
There is also a mailing list available for users of this distribution, at <http://dzil.org/#mailing-list>.
There is also an irc channel available for users of this distribution, at "#distzilla" on "irc.perl.org" <irc://irc.perl.org/#distzilla>.
Jerome Quelin
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2024-01-20 | perl v5.38.2 |