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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:09:37+00:00 2026-05-30T03:09:37+00:00

I have a project I have been adding files to regularly and noticed recently

  • 0

I have a project I have been adding files to regularly and noticed recently that only some of the files are being managed by the local git repository. In other words, when I modify some of the files, there is no indication of source control status (like ‘M’).

The files that are exhibiting this behavior are ones created by making copies of existing files in the project outside of XCode. For example, I would go out to finder and make a copy of a file already in the project, rename it, and go back into XCode and add the file to the project.

When I right-click on these files in XCode and choose Source Control, every menu item is grayed out. I can’t even add them to source control.

I have a feeling that copying a file already in the project caused a problem, but I have no idea how to fix it. I have read that I can recursively remove source control from a project by issuing a bash command, but I would really rather not lose the source control history I already have.

Thanks in advance for your help.

  • 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-30T03:09:38+00:00Added an answer on May 30, 2026 at 3:09 am

    When I right-click on these files in XCode and choose Source Control, every menu item is grayed out. I can’t even add them to source control.

    I would really rather not lose the source control history I already have.

    I couldn’t reproduce this in XCode 4.2. Manually adding the files to the git repository should work – but I can’t test this.

    Steps to manually add files to the git repository:

    • Open Terminal
    • Navigate to the folder that your XCode project is located in.
    • Run git status, which should tell you which files are currently untracked.
    • To add all untracked files to git, use git add -A – this will add all untracked files, and remove any files which have been deleted from the git repository.
    • If you’d prefer to pick which files are to be added: git add <filename>.
    • To commit to git: git commit.

    Once this is done, XCode should recognize that the files are being tracked and let you commit changes via the XCode source management commands.

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

Sidebar

Related Questions

I have a project that I have been working on for a while, just
I have a personal project that's been online for sometime now. I've been keeping
I have a project on github that I have been working on before. However,
On a recent project I have been working on in C#/ASP.NET I have some
I need some help with a work project I have been assigned. At the
I've been tasked with adding some c++ code into an iOS project. The c++
In a project have been involved in I needed to render tables with columns
I have a plugin project I've been developing for a few years where the
I have been made a windows service.in which i have been added project installer.in
I am about to start a web project and have been working almost exclusively

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.