2

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 ?

Abizern
  • 146,289
  • 39
  • 203
  • 257
Oliver Bayes-Shelton
  • 6,135
  • 11
  • 52
  • 88

1 Answers1

3

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

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • No never committed. How can I track a file ? – Oliver Bayes-Shelton Jan 05 '11 at 11:50
  • @user563771: If you are talking about this "git gui": http://nathanj.github.com/gitguide/tour.html or http://stackoverflow.com/questions/1344908/git-gui-stage-everything. If you are talking about a Git gui integrated in another tool, like Eclipse EGit: http://www.vogella.de/articles/EGit/article.html#team_operations – VonC Jan 05 '11 at 11:56
  • Thanks, I use eclipse as my IDE so might be a handy link – Oliver Bayes-Shelton Jan 05 '11 at 11:58
  • @user563771: ok I have added another tutorial link and a picture of Git workflow in term of tracking changes. – VonC Jan 05 '11 at 12:09