Commit Driven Development Git-CLI Command Line Utility
gim
provides the following commands:
- Accepts a string argument for the planned commit message.
- The commit message is stored inside the
.COMMIT_MESSAGE
file.Note: Don't worry about adding a
.COMMIT_MESSAGE
file yourself (or adding it to.gitignore
),gim
takes care of that for you! - replaces the current commit message
- Opens system default editor to edit current commit message
- Appends the
ADDED_MESSAGE
to the current commit message. Used for multiline commits
- Equivalent to
git add . && git commit -m $COMMIT_MESSAGE && git push
. - Allows optional argument for inclusion of specific files, similar to
git add $FILES
. - Upon a successful push, the
.COMMIT_MESSAGE
file is cleared, excluding comments.
- Displays the current
gim
planned commit message at the top of the normalgit status
output.
- Clears the stored commit message.
- Fully clears the stored commit message, comments included.
- Prints the command descriptions to the console.