https://github.com/adwaith-rajesh/git-changes
A better way to add commit messages for each change
https://github.com/adwaith-rajesh/git-changes
Last synced: 23 days ago
JSON representation
A better way to add commit messages for each change
- Host: GitHub
- URL: https://github.com/adwaith-rajesh/git-changes
- Owner: Adwaith-Rajesh
- Created: 2025-08-09T10:39:07.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-08-09T11:19:18.000Z (6 months ago)
- Last Synced: 2025-08-09T13:11:22.142Z (6 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-changes
I just want to manage my commit messages.
---
## Why?
i just want to keep track of the changes that I make. Instead of adding many changes at once and then writing a long commit message, I just want to add the each change with a message and then commit them.
---
## Installation
```console
pip3 install git-changes
```
---
## Usage
### Initializing
After installing run the below command in a **git repo**
```console
gitc --init
```
### Adding changes with messages
```console
$ git addm file -m 'adding a new file' --type=fix
[fix] adding a new file
```
The `--type` is optional. The currently supported choices for `--type` are
```console
$ git addm -help
usage: gitc-add [-h] -m MESSAGE [--type {feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert}]
options:
-h, --help show this help message and exit
-m MESSAGE, --message MESSAGE
Message to add
--type {feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert}
The type of the change
```
### Show Message
To list all the messages that will added to the next commit, run
```console
$ git show-messages
[fix] new hello file
[fix] adding a new file
[perf] fix some_function
[refactor] change var name
```
### Commit
In order to commit with all these message all you have to do is run.
```console
$ git commit
```
This will open up commit message editor with all the set message for the current commit.

> NOTE: you cannot simply save and exit this file; since this is a template you have to make
> some changes to it. I suggest adding a title that summarizes all these changes.
After a successful commit all the messages will be automatically removed.
```console
$ git show-messages
No commit messages yet!.. To add new message run
git addm -m [--type]
```
### Bye...