https://github.com/khattakdev/minimalcommit
A minimalist approach toward git commits to keep commits simple.
https://github.com/khattakdev/minimalcommit
hacktoberfest
Last synced: 8 months ago
JSON representation
A minimalist approach toward git commits to keep commits simple.
- Host: GitHub
- URL: https://github.com/khattakdev/minimalcommit
- Owner: khattakdev
- License: isc
- Created: 2023-04-01T05:58:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T19:41:51.000Z (over 2 years ago)
- Last Synced: 2025-10-01T13:35:32.348Z (8 months ago)
- Topics: hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 42
- Watchers: 1
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Minimal Commit
> _A minimalist approach toward `git commit` to keep commits simple._

## What is Minimal Commit?
Minimal commit is a Node.js based CLI (command line interface) tool that helps you and your team mates to stay consistent with the `git commit` messages. To commit files using **Minimal Commit**, you have a list of options to choose from, this list consist type of work you did. This makes things simple and less confusing by choosing an option from a list.
The list of options is limited to only **nine types**. This is done on purpose to keep the list as short as possible to avoid confusion. The more options you have, the more confusing it will be.
## Types
Following are the nine types of commits.
- `β¨ feat` to be used for a new feature
- `π fix` to be used for bug fixes
- `π₯ break` to be used for breaking changes
- `β»οΈ ref` to be used for making code/folder refactor
- `π§ͺ test` to be used for writing test cases
- `π ver` to be used for version changes
- `π docs` to be used for documentation
- `π¨ style` to be used for CSS changes
- `π config` for configuration, and dependencies changes
- `π¦ misc` to be used for others
## Installation
To install **Minimal Commit**, you can use the following command.
```
npm install -g minimalcommit
```
## Why Minimal Commit?
- Straight Forward
- Easy to read
- Visually appealing
## Usage
```
mct
```

## How to write commits?
Hereβs the general syntax of Minimal Commit.
```
:
```
> β οΈ All of the commits must be written in the present tense.
> Following are some examples:
```
β¨ feat: added sign-up feature β
β¨ feat: add sign up feature β
π config: removed extra extension files β
π config: remove extra extension files β
```
The commit title should be precise, and to the point but at the same time, it shouldn't be vague. All of the extra details should go in the description (_β οΈ Descriptions are not supported yet_.)
```
β¨ feat: add new feature β
β¨ feat: add sign up feature with forgot password and auth with Google β
β¨ feat: add sign up feature using OAuth β
β¨ feat: add sign up feature β
```
Following are some more examples:
```
π config: add .gitignore file
β»οΈ ref: move functions to helper.js
π¦ misc: add initial test cases
π¦ docs: update docs with v2.0 features
```
### Examples
- You added `.yaml` file for GitHub Actions
`β¨ config: add .yaml file for github actions`
- You added some tests cases for the user interface
`π¦ misc: add test cases for ui`
- You moved some part of the code to components folder
`β»οΈ ref: move pages code into components`
- You updated the code that caused some breaking changes
`π₯break: update sign-up api endpoints`
- You made some changes to the user interface
`π¨ style: update the auto pages`
## Contributing
All code contributions, must go through a pull request and be approved by the maintainer before being merged. This is to ensure a proper review of all the code.
We truly β€οΈ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](https://github.com/Haimantika/minimalcommit/blob/main/CONTRIBUTING.md).
## Support
If you like the work, please give this repo a βοΈ and feel free to contribute to this project through issues, and pull requests.