Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7907455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:26:52+00:00 2026-06-03T11:26:52+00:00

Until a minute ago, I had a Git repo where the last commit had

  • 0

Until a minute ago, I had a Git repo where the last commit had an empty commit message. I’ve filled it in by squashing a new commit onto it with git rebase -i (I was planning to amend the contents anyway) but I would still like to know if there’s a proper way to fill in empty commit messages.

I tried

git commit --amend

but that didn’t work, then I tried

git rebase -i HEAD^

and a reword. Both attempts resulted in Git saying

fatal: commit has empty message

and quitting.

EDIT: to clarify, what finally worked was

# change some stuff
git commit
git rebase -i HEAD~2
# squash the last two commits

but this seems like a hack.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:27:03+00:00Added an answer on June 3, 2026 at 11:27 am

    This seems to be a bug which hasn’t been fixed yet (although there are proposed patches for it). As a workaround, you can provide the message on the command line:

    git commit --amend -m "foo"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just had a new, last-minute idea on to take on a task, so
Until now I was logging the Error message and the stack trace of an
Possible Duplicate: JIT compiler vs offline compilers So until a few minutes ago I
this question is related to mine of just a minute ago. I'm looking for
SVN was working just fine until a few minutes ago -- I can still
I have shared hosting with hostgator and until about a month ago, things were
Until a few minutes ago, I believed that Perl 's $ matches any kind
I have a WCF service hosted in IIS 7. It takes some minutes until
Until now I've always used the ASP.NET MVC framework source for debugging ASP.NET MVC.
Until recently I'd considered myself to be a pretty good web programmer (coming up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.