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 wil开发者_如何转开发l 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 ?
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.
精彩评论