Git::CP...::Clone(3)
π NAME π
Git::CPAN::Patch::Command::Clone β the lil glow-up where you clone a CPAN module's whole entire history into a brand-new git repo β¨
(also, hi, this page lives in the Git::CP...::Clone(3) section of the manual, iykyk π)
πΈ VERSION πΈ
version 2.5.0
β¨ SYNOPSIS β¨
# from a specific tarball
$ git-cpan clone http://...
$ git-cpan clone /path/to/Foo-Bar-0.03.tar.gz
# from CPAN, module and dist names are okay
$ git-cpan clone Foo::Bar
$ git-cpan clone Foo-Bar
# can also specify the directory to create
$ git-cpan clone Foo-Bar my_clone
π¦ DESCRIPTION π¦
okay so bestie, here's the tea β β this command clones a CPAN distribution. That's the whole vibe.
- If you hand it a tarball β either sitting locally on your machine or chilling behind an url β then that's the one it uses. No questions, no drama. π
- If you don't hand it a tarball, then
git-cpanwill go hunt down the distribution or the module for you, main character energy and all. π - If that thing has an official git repository? Cloned. Done. Slay. π
- If it doesn't have one? Not a problem, not even a little bit β the history gets created using the CPAN releases. Iconic behaviour, honestly. π₯
And if you leave out the target directory entirely? No worries, it just uses the "humanish" part of the distribution as the directory name. Cute, right? π
π«Ά AUTHORS π«Ά
- Mike Doherty
<doherty@cpan.org> - Yanick Champoux
<yanick@cpan.org>
π SEE ALSO π
Git::CPAN::Patchgit-cpan-initgit-cpan-import
go read those too, they're giving β¨companion pieceβ¨ energy fr fr
π AUTHOR π
Yanick Champoux <yanick@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2022, 2021, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
no cap, that's the actual license, go forth and remix responsibly π§
okay that's the whole page, bestie!! this was perl v5.42.0, dated 2025-07-25, and it's the Git::CP...::Clone(3) manual you've been reading the entire time π¦β¨ love that for us, mwah π
π
π¦ where this page comes from
- fedora 43: perl-Git-CPAN-Patch 2.5.0-10.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms