Right now an example git commit message looks like below. It has the filename listed * emacs.d/robenkleene/config/robenkleene-config.el:. How do I not have the commit message pre-populated with that line? (Everything prefixed with a # is fine, it's just the one line listing the filename that will actually appear as part of the commit message that I want to never appear by default in commit messages.)

* emacs.d/robenkleene/config/robenkleene-config.el: 

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
# Changes to be committed:
#   modified:   emacs.d/robenkleene/config/robenkleene-config.el
  • I don't see it happen here, you must have some customization that causes this.
    – npostavs
    Jul 16, 2017 at 1:39
  • Thanks for the info! It definitely might be a customization on my side. Jul 16, 2017 at 1:54

1 Answer 1


I figured this out. I was using C, to start a commit which fires magit-commit-add-log, which I guess means also include this entry. The correct commit binding to use is c c, which starts a commit without the file entry.

  • Yeah, it really means add that entry to the current commit message, if there is no current commit message then it starts a commit first.
    – npostavs
    Jul 16, 2017 at 2:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.