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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:32:37+00:00 2026-05-29T12:32:37+00:00

I copied my local git repo to my sites folder so that I can

  • 0

I copied my local git repo to my sites folder so that I can develop locally and then push changes to github.

When I try committing via “git commit -a” I get this message:

E325: ATTENTION

Found a swap file by the name “.git/.COMMIT_EDITMSG.swp”

      owned by: usrname   dated: Sat Feb  4 18:56:02 2012

     file name: ~myUsername/oldRepoLocation/.git/COMMIT_EDITMSG

      modified: YES

    process ID: 15435

While opening file “.git/COMMIT_EDITMSG”

         dated: Sun Feb 12 19:51:43 2012

  NEWER than swap file!

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use “:recover” or “vim -r .git/COMMIT_EDITMSG”
to recover the changes (see “:help recovery”).
If you did this already, delete the swap file “.git/.COMMIT_EDITMSG.swp”
to avoid this message.

Swap file “.git/.COMMIT_EDITMSG.swp” already exists!

  • 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-29T12:32:39+00:00Added an answer on May 29, 2026 at 12:32 pm

    While Vim is running, it creates one .swp file per file open in a buffer. It’s for crash recovery.

    In this case, you probably copied the repo while Vim was opened to edit the commit message, thus keeping the .swp file around in the new copy. It’s safe to delete the errant swp file:

    rm .git/.COMMIT_EDITMSG.swp

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

Sidebar

Related Questions

I am trying to clone a git repo that I forked in my GitHub
Copied files & sub-directories into local working directory...then did git add [sub-directory name] Tons
Magento 1.4.1.1 Back in history, app/code/core/Mage/GoogleAnalytics/Block/Ga.php was copied over to app/code/local/Mage/GoogleAnalytics/Block/Ga.php and changes were
Using Git or Mercurial, if the working directory is 1GB, then the local repository
I have a Rails plugin which was copied from a git repo with script/plugin
I'm using Mercurial 1.7.2 Windows I have a local repo where I copied some
I have local git repo, which i'd like to add to my projects as
Copied from my log file ActionView::Template::Error (Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs
I copied this class from a similar class I have in this app that
Does Git support any commands that would allow me to commit directly from a

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.