commitizen/cz-cli

Add a way of reusing a commit message

Open

#548 opened on Jul 31, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (552 forks)batch import
hacktoberfest

Repository metrics

Stars
 (16,309 stars)
PR merge metrics
 (Avg merge 23d 13h) (6 merged PRs in 30d)

Description

I'd like to be able to reuse a commit message that was just created by the commitizen CLI. The use case: sharing the same message in two different repositories, without having to be prompted for all the questions again.

Since the commit is done under the hood, for instance, the autocompletion/autosuggestion from zsh can't handle it. Perhaps adding the commit to the .bash_history would work? Not sure. Another solution that comes to my mind as of now would be to add a last option called "Copy to clipboard? [Y/n]", then if yes, it could be reused as well in other repositories/terminal tabs.

Contributor guide