Skip to content

Default Commit Message in the Editor #2704

Open
@richardtop

Description

@richardtop

Currently, when committing, I have to always type the message.
I'd like to have this value to be prefilled with a default message of my choosing, so that I could just click "commit", without the need to type message.

Use-case:

  • working locally, private branch, etc. where the commit message is not important / needed yet

Workarounds that don't work:

echo "Default commit message here" > ~/.gitmessage.txt
git config --global commit.template ~/.gitmessage.txt

Unfortunately, this doesn't seem to be respected with the GitUp editor and no commit message shows up.

UI suggestions:

  1. Either to make it a default value that the user can edit and/or remove
  2. Or put the user-defined default value if the commit box is empty

Both approaches work for me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions