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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:58:19+00:00 2026-06-13T23:58:19+00:00

I have a submodule that git diff is reporting as dirty . So, I

  • 0

I have a submodule that git diff is reporting as dirty. So, I cd into the submodule’s repo, check the git status and see that one file is reporting as changed.

# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   Main.cs

Doing a git add Main.cs or git add --force Main.cs does nothing. No messages are shown and git status reports the exact same.

Also this file doesn’t match anything in .gitignore.

I don’t even know where to go from here!

git version 1.7.11.msysgit.1

  • 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-13T23:58:20+00:00Added an answer on June 13, 2026 at 11:58 pm

    Try one of this:

    • stash/unstash it
    • copy file to another place, checkout it discarding changes, then replace freshly checked out file with saved one
    • if nothing above helps, git rm’ it and then add again
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple project that has one submodule. $ git submodule 964737623a362f6303e87ec41f2c7090c8c2c093 lib/mongodb-php-odm
I have one Git repository that contains a git submodule. In Xcode 4.2.1 I
I have a git repo and I want to add a submodule to it.
I have created a git repo in a folder that had spaces and some
I have git projects that share a common library as a git submodule. When
I have a project that has a submodule at lib/three20 My .gitmodule file looks
I have the following setup: One git repo (lets call it libutil), and a
I have legacy projects that is using a submodule which resides on git. There
I have a Git submodule that I have successfully cloned in to my main
I have a git submodule (RestKit) which I have added to my repo. I

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.