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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:29:35+00:00 2026-05-27T08:29:35+00:00

I am using git for the first time, and based on advice from others,

  • 0

I am using git for the first time, and based on advice from others, I have started using it from the command line rather than from within xcode. After initially committing my project folder, I saw that several files were automatically excluded, including the .xcodeproj file. I added that file and received this error:

E325: ATTENTION
Found a swap file by the name ".git/.COMMIT_EDITMSG.swp"
...
       process ID: 8453 (still running)
While opening file ".git/COMMIT_EDITMSG"
            dated: Thu Dec  8 08:21:00 2011
     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!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort: 

I don’t know what all this means, but this occurs when Xcode is running and when it is not running, so the part about another program editing the file seems to not be the problem.

As I thought about this, I began to wonder how do I manage the archiving of the project configuration when I am branching? If I don’t archive the project file, I imagine that the branches are all using a single project file. This doesn’t seem right. So my question is how do I manage the configuration for branches?

  • 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-27T08:29:36+00:00Added an answer on May 27, 2026 at 8:29 am

    That error is being reported by vim, which I assume is your editor. It indicates that vim believes that another copy of vim is already running and editing the file .git/.COMMIT_EDITMSG (which is the file that git uses to prepare the commit message when you’re making a commit). It’s possible that killing vim while it’s editing this file would leave the swap file behind, causing this issue. It’s also possible that you really do have another instance of vim running, editing this file. If it’s the former, you can either “(R)ecover”, which reads the swap file and uses that to populate the editor or “(E)dit anyway”, which ignores the swap file. If you do have another copy of vim running then you should probably “(Q)uit” or “(A)bort” to cancel out of this instance of vim.

    As for “archiving” the project file (which I assume means tracking in git), you absolutely should have it tracked. And once it’s tracked, then each branch will have its own copy, which is right and proper.

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

Sidebar

Related Questions

I just started using Ubuntu Linux for the first time. I know the GIT
I have started using Git in the middle of my project, where the first
So I've been using git for the first time, and there is a scenario
I am new to Git and this is the first time I have experienced
This is my first time using git, and I am not sure what is
This is my first time using any sort of version control (git) and excited
This is my first time using Bash, so bear with me. I'm using Git
I am using this workflow: http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html where he mentions: First, and while in your
I've been using git for some time now on Windows (with msysGit) and I
I recently started using Git as my version control system for some Cocoa projects

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.