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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:52:36+00:00 2026-05-17T22:52:36+00:00

When i hit ‘git status’, it shows 2 folders that contains files that are

  • 0

When i hit ‘git status’, it shows 2 folders that contains files that are tracked long time ago:

$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       src/UI/Views/Shared/EditorTemplates/
#       src/Web/helpers/

nothing added to commit but untracked files present (use "git add" to track)

Git GUI shows nothing as expected.

Using portablegit 1.7.1, but tried 1.7.0.2 – same results.

What can cause that?


$ cat .gitignore
.nu/*
lib/*
*~
*.swp
*.swo
*_ReSharper*
doc/*
RAPLM.suo
RAPLM.5.1.ReSharper.user
src/*/bin/*
src/*/obj/*
src/*/Debug/*
src/*/Release/*
src/Domain/unused

@Charles Bailey

lapsaarn@WW021198 /d/work/asdf (master)
$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       src/UI/Views/Shared/EditorTemplates/
#       src/Web/helpers/
nothing added to commit but untracked files present (use "git add" to track)

lapsaarn@WW021198 /d/work/asdf (master)
$ git add src/Web/helpers/

lapsaarn@WW021198 /d/work/asdf (master)
$ git add src/Web/helpers/*

lapsaarn@WW021198 /d/work/asdf (master)
$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       src/UI/Views/Shared/EditorTemplates/
#       src/Web/helpers/
nothing added to commit but untracked files present (use "git add" to track)

lapsaarn@WW021198 /d/work/asdf (master)
$

@Charles

$ git ls-tree -r HEAD | grep -i helpers
100644 blob 843de27f850308786140a7c09f67b5ef99184630 src/web/helpers/HtmlHelperExtensions.cs

  • 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-17T22:52:37+00:00Added an answer on May 17, 2026 at 10:52 pm

    Charles Bailey correctly diagnosed the problem in the comments: “git add” on a case insensitive Os.

    It is linked to issue 286 of msysgit: “Case Sensitity of Directory Names”, and the issue remains (again, for directories) even if you set core.ignorecase to true.

    When you add “src\Web” (with a capital ‘W‘), it won’t add anything if your index already contains “src\web” (lowercase ‘w‘).

    A patch was proposed but rejected:

    The folder seems to be listed as untracked because directory_exists_in_index() tries to compare the old name to the new name, and ending up not finding a match for the
    new folder (even though the file inside it remains tracked!).
    A very rude patch (inlined below) was written to try to work around the issue.
    Now… for my minimal case, this works – the directory is no longer listed as untracked. But I strongly expect this to be a BROKEN patch for at least the following reason: Case insensitive comparison should break binary searching, as the casing should return the wrong position if I had more files in the index.

     dir.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/dir.c b/dir.c
    index e05b850..c55a15c 100644
    --- a/dir.c
    +++ b/dir.c
    @@ -444,7 +444,7 @@ static enum exist_status directory_exists_in_index(const char 
    *dirname, int len)
                    struct cache_entry *ce = active_cache[pos++];
                    unsigned char endchar;
    
    -               if (strncmp(ce->name, dirname, len))
    +               if (strnicmp(ce->name, dirname, len))
                            break;
                    endchar = ce->name[len];
                    if (endchar > '/')
    --
    1.6.4.msysgit.0.2.gcb017.dirty
    

    So you need to:

    • change your ‘Web‘ into ‘web‘ in your working directory (filesystem)
    • OR change your ‘web‘ into ‘Web‘ in the index (git mv src/web src/Web) in your index.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I hit a page which calls session_start() , how long would I have
I hit this error while my web application was trying to execute a SELECT
Is there a performance hit if we use a loop instead of recursion or
I have hit upon this problem about whether to use bignums in my language
I have hit a classic problem of needing to do a string replace on
When you hit F5, the browser windows pops up, how do you set which
I've hit a blank here and would appreciate a kick start. I have two
Is there a performance hit when iterating over object attributes vs. iterating an array?
I've hit a small dilemma! I have a handler called vote; when it is
And why does gdb seem to hit it?

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.