A better way to add commit messages for each change.
Go to file
2025-08-09 23:04:25 +05:30
.gitignore Hello World 2025-08-09 14:03:09 +05:30
.onedev-buildspec.yml build file 2025-08-09 16:18:36 +05:30
.pre-commit-config.yaml build file 2025-08-09 16:18:36 +05:30
git_changes.py update the add command 2025-08-09 23:04:02 +05:30
pyproject.toml set aliases for adding and showing messages 2025-08-09 22:38:49 +05:30
README.md updated readme to include add and show message 2025-08-09 23:04:25 +05:30
setup.cfg Hello World 2025-08-09 14:03:09 +05:30

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

pip3 install git-changes

Usage

Initializing

After installing run the below command in a git repo

gitc --init

Adding changes with messages

$ 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

$ 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

$ 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.

$ git commit

This will open up commit message editor with all the set message for the current commit.

Terminal image

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.

$ git show-messages
No commit messages yet!.. To add new message run
git addm -m <message> [--type]

Bye...