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 7522465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:31:49+00:00 2026-05-30T02:31:49+00:00

Every now and then, as I am dutifully crafting a nice, descriptive commit message

  • 0

Every now and then, as I am dutifully crafting a nice, descriptive commit message, I get an error:

".git/COMMIT_EDITMSG" 81L, 2108C written
error: There was a problem with the editor 'vim'.
Please supply the message using either -m or -F option.

Note this is usually after :wq. I check the .git/COMMIT_EDITMSG file and it has no changes in it. Is there another place that git saves this message to so I might recover it and try committing again? Do people have experience with this problem and know why it might be happening to me? I have no issues writing to other files and permissions seem to be in order.

  • 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-05-30T02:31:51+00:00Added an answer on May 30, 2026 at 2:31 am

    Not sure as far as git on the COMMIT_EDITMSG when you’re at this state. As mentioned earlier, you may be able to see if vim saved it. But my understanding is that vim’s default is to delete the backup unless you’ve explicitly told it to keep them. In addition, if you didn’t want to have these files scattered all over your directories, you can specify a directory to put them in (you may have to manually create the directory first).

    Try adding the following two lines to your ~/.vimrc file:

     backup
     backupdir=~/.vim/backup
    

    Manually create the ~/.vim/backup directory, then edit a file and exit. You should see a copy of the file with a “~” at the end of the name in your backup dir.

    On a side note, if you’re as lazy as I am, use “:x” to exit vim instead of “:wq”. The “:x” does both a write and a quit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Every now and then I get an error when I set up states in
Every now and then we get this error from some of our old ASP
Every now and then I sometime get the following error A component named dlgPrinterSettings
I have an application where every now and then I'm getting a strange error.
The following error pops up every now and then: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamTest\Microsoft.TeamTest.targets(14,5): error : API
I'm enjoying using Fluent NHibernate with AutoMappings but every now and then I get
For the 10+ years I've been using VB6, every now and then I get
Every now and then when I'm browsing data in a database, I get tired
Every now and then I start getting this error in the debugger constantly. Sometimes
Every now and then, I get into a situation when I have a query

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.