spenserblack / git-draft-commit

Draft a commit message before you commit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git draft-commit

This script lets you draft a commit as you work. For example, if you intend to make a commit that resolves an issue, you can draft the following.

Fix issue #1

And then, once you've completed your work, you can "publish" your draft. Your editor will be opened once more to allow you to do the final touches to your draft.

Do thing that unbreaks stuff

I did a thing.

Fixes issue #1

Usage

# Open your editor to draft a commit message
git draft-commit

# Complete your commit
# This works by calling `git commit -F=path/to/draft`
git draft-commit --publish  # short option is -p

Installation

Download the script and install it somewhere in PATH.

About

Draft a commit message before you commit

License:MIT License


Languages

Language:Shell 100.0%