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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:44:55+00:00 2026-06-15T09:44:55+00:00

I have a sub-directory in my repo that stopped tracking changes. I can add

  • 0

I have a sub-directory in my repo that stopped tracking changes. I can add abc.php file to any directory above a certain level and git status returns the expected results, but once I add abc.php to the subdirectory in question (or change an existing file), git status comes up empty. I believe the subdirectory used to have it’s own git repo, but I could be wrong.

I see that git update-index --really-refresh may be an option, but I’m concerned because I added other git projects to “sibling” directories to the one having an issue. (I didn’t do anything within my parent repo to acknowledge these, so hope that’s okay too.)

That is, I have

  1. …dir/custom (the dir where changes ignored)
  2. …dir/sibling1 (sibling dir 1 with own git repo)
  3. …dir/sibling2 (sibling dir 2 with own git repo)

Every parent directory in dir and above has no issues and works as expected.

My primary question: should I be concerned about running this given the above structure? I’d also like to ask if there’s anything I should do with the repos within the primary repo (i.e. somehow declare them as submodules)?

Thanks.

  • 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-06-15T09:44:56+00:00Added an answer on June 15, 2026 at 9:44 am

    Okay well I needed to run the following two commands to get it working:

    git rm --cached path_to_subdir (no trailing slash)
    
    git add path_to_subdir/*
    

    Based on the messaging I was seeing when trying to run the command in my original post (git update-index --really-refresh), there used to be a git repo in the sub-directory that was not removed properly, and was never declared as a sub-module.

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

Sidebar

Related Questions

I have a PHP script (index.php) that includes an index.html file in a sub-directory
I have a directory with multiple sub directories that contain .doc files. Example: C:\Users\tmedina\Documents\testenviroment\Released\500\test0.doc
I have an admin section that has a sub-directory of the controllers directory. I.e.,
I have two sub-directories each with a repo, thus : PPP/ |--ABC/ | |--.git/
I have a image folder which contains sub directory for each album of images
I have a directory Dir in which I have about 30 sub-directories. From these
I have a directory and a bunch of sub-directories like this: - directory1 (
I am going to have one directory with multiple sub-directories. I want to be
I'm on linux, and I have a directory with numerous sub-directories and items inside
From what I understand of subversion if you have a repo that contains multiple

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.