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

  • Home
  • SEARCH
  • 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 219709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:52:13+00:00 2026-05-11T18:52:13+00:00

I have cloned a project that includes some .csproj files. I don’t need/like my

  • 0

I have cloned a project that includes some .csproj files. I don’t need/like my local csproj files being tracked by Git (or being brought up when creating a patch), but clearly they are needed in the project.

I have added *.csproj to my LOCAL .gitignore, but the files are already in the repo.

When I type git status, it shows my changes to csproj which I am not interested in keeping track of or submitting for patches.

How do I remove the “tracking of” these files from my personal repo (but keep them in the source so I can use them) so that I don’t see the changes when I do a status (or create a patch)?

Is there a correct/canonical way to handle this situation?

  • 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-11T18:52:14+00:00Added an answer on May 11, 2026 at 6:52 pm

    Just calling git rm --cached on each of the files you want to remove from revision control should be fine. As long as your local ignore patterns are correct you won’t see these files included in the output of git status.

    Note that this solution removes the files from the repository, so all developers would need to maintain their own local (non-revision controlled) copies of the file

    To prevent git from detecting changes in these files you should also use this command:

    git update-index --assume-unchanged [path]
    

    What you probably want to do: (from below @Ryan Taylor answer)

    1. This is to tell git you want your own independent version of the file or folder. For instance, you don’t want to overwrite (or delete)
      production/staging config files.

    git update-index --skip-worktree <path-name>

    The full answer is here in this URL: http://source.kohlerville.com/2009/02/untrack-files-in-git/

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

Sidebar

Related Questions

I have cloned a Git project into a local Git repository. Then I have
I have a series of large fla files that were being published into swc's
I have cloned project from repo and I need to create branch and in
I have a data object that is deep-cloned using a binary serialization. This data
I have two git repositories: report.git (Master on remote location) cloned.git (Local) I lost
I have a repo (origin) on a USB key that I cloned on my
I'm developing a project that includes a picture gallery managing by admin panel. I
I have an iPhone project in xcode that needs to be compiled for armv7
So I have cloned a project at github and fixed a patch. Since this
I need to write small a log analyzer application to process some log files

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.