3.1.1 • Published 5 years ago

better-commit v3.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

better-commit

git commit with batteries included

Installation

npm i -g better-commit
npm i -g better-commit@stable

Usage

git alias (recommended)

git config --global alias.c '!f() { better-commit "$@"; }; f'

~/better-commit  readme ✗
▶ git c -m "Add readme"
[readme 08e9199] readme: Add readme
1 file changed, 10 insertions(+)
create mode 100644 readme.md

notice branch name readme: was prepended to commit message

cli

better-commit -am "better-commit is awesome"

Options

  • supports all git commit options
    git c -i readme.md -m "Update readme" --fixup 55e75f7

Plugins

  • extensible by specifying plugins in .bettercommitrc

Core Plugins

  • better-commit-prepend-branch (default)
    no branch name prepended on master or detached HEAD
  • better-commit-autocorrect
  • better-commit-emoji
{
    "plugins": [
        ["prepend-branch", {
            "master": "retsam"
        }],
        ["emoji", "random"],
        "autocorrect"
    ]
}

exclude plugins

{
    "plugins": ["!prepend-branch"]
}

plugins must be published on npm as better-commit-<plugin-name>

Examples

Demo

Demo

Contributing

Please suggest features you'd like to use in your git workflow, better yet, submit a pull request :thumbsup:

3.1.1

5 years ago

3.1.0

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.5.1

6 years ago

2.5.0

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.0.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago