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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:24:21+00:00 2026-05-23T19:24:21+00:00

git version 1.7.4.1 I am using git on Ubuntu. I have copied some files

  • 0

git version 1.7.4.1

I am using git on Ubuntu.

I have copied some files from another directory to my git working directory. Normally would appear under Untracked files. However, they do not appear. So I cannot add them.

When I do a git status the new files are not shown.

I tried to add them by doing git add source.c then tried git status. The file was not show.

So I opened the file and did a save as as the same name. git status still failed to see the file.

I have done a git ls-files and the new files are shown ok.

I have checked the file permissions and they are the same as all the current files in my git directory.

I have never had this problem before.

Many thanks for any suggestions,

  • 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-23T19:24:22+00:00Added an answer on May 23, 2026 at 7:24 pm

    If git ls-files shows source.c, then it must already be in the index. This means that it is already tracked, and possibly already committed. If source.c isn’t showing up in git status at all, then the file must have been committed.

    Try modifying the file to see if it shows up as modified in git status. To really convince yourself that the file is checked in, run git cat-file -p HEAD:source.c to see the contents of the checked-in file (see git help revisions for documentation about the HEAD:source.c syntax).

    In addition, one or more of the following may be true:

    • The file has been modified, but the ‘assume unchanged’ bit is set in the index. Take a look at the output of git ls-files -v source.c. If the first column is a lower-case letter, then the ‘assume unchanged’ bit is set. This will prevent any changes from showing up in git status. You can turn off the ‘assume unchanged’ bit by running git update-index --no-assume-unchanged source.c.
    • The file has been modified, but the ‘skip-worktree’ bit is set in the index. If the first column of the output of git ls-files -v source.c is s or S then the ‘skip-worktree’ bit is set. You can turn off the ‘skip-worktree’ bit by running git update-index --no-skip-worktree source.c.
    • Your index is corrupt. Try deleting .git/index (Git will recreate it as necessary).
    • Filesystem issues are preventing stat() from working properly. Try running git update-index --really-refresh. If your working directory is on a network drive (NFS, sshfs, etc.) try moving your repository to a local drive.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Git for version control and unlike SVN I have not come across
I recently started using Git as my version control system for some Cocoa projects
I have been using Git for my version control for a while now, but
I am using Git Version Control on an remote server and I have set
I am using git version 1.7.2.3 and I have the following situation: Clone git
I am using: Windows XP Python 2.6.2 (standard install from python.org) git version 1.6.5.1-preview20091022
Possible Duplicate: Git - Whitelisting files in a complex directory structure I have a
I'm using git version 1.5.6.3, and it seems git doesn't notice a folder's mode
I'm using git to version my home directories on a couple different machines. I'd
I'm using Ubuntu 10.04 and Perl 5.10.1. The BioPerl package has some nice scripts,

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.