% git-cpan squash temp_submit_branch % git commit -m "This is my message" % git-cpan send-patch --compose # delete the branch now that we're done % git checkout master % git branch -D temp_submit_branch
This command creates a new branch from cpan/master runs git merge --squash against your head revision. This stages all the files for the branch and allows you to create a combined commit in order to send a single patch easily.
cpan/master
git merge --squash
To install Git::CPAN::Patch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::CPAN::Patch
CPAN shell
perl -MCPAN -e shell install Git::CPAN::Patch
For more information on module installation, please visit the detailed CPAN module installation guide.