Oliver Bayes-Shelton
Oliver Bayes-Shelton

Reputation: 6292

Git not showing updated css and html files as changed

I am having a problem with the Git Gui on vista. If I modify a .php file I can click "rescan" and the files will show as changed and then I can commit the file in question. However when I modify any HTML or CSS file I do not get this option.

Any ideas ?

Upvotes: 2

Views: 4700

Answers (1)

VonC
VonC

Reputation: 1326016

Are those html and css files tracked? (i.e. have they been added and committed before?) Because if they aren't, git-gui shows untracked files as "changed but not updated".

And you cannot commit untracked files. You should have the option to add them though.

For EGit (Git in Eclipse), see this tutorial, as well as Eclipse wiki EGit tutorial:

Each file in the working directory can either be tracked or untracked.

  • Tracked files are those which were in the last snapshot or files which have been newly staged into the index. They can be unmodified, modified, or staged.
  • Untracked files are all other files which were not in the last snapshot and have not been added to the index.

When you first clone a repository all files in the working directory will be tracked and unmodified since they have been freshly checked out and you didn't start editing them yet.

As you edit files git will recognize they are modified since you have modified them since the last commit. You stage the modified files into the index and then commit the staged changes and the cycle repeats.

alt text

Upvotes: 2

Related Questions