gpt4 book ai didi

Git 未将更新的 css 和 html 文件显示为已更改

转载 作者:行者123 更新时间:2023-12-04 06:38:18 24 4
gpt4 key购买 nike

我在 vista 上遇到了 Git Gui 的问题。如果我修改了一个 .php 文件,我可以单击“重新扫描”,文件将显示为已更改,然后我可以提交有问题的文件。但是,当我修改任何 HTML 或 CSS 文件时,我没有得到这个选项。

有任何想法吗 ?

最佳答案

是那些htmlcss文件被跟踪? (即它们之前是否被添加和提交过?)
因为如果不是,git-gui shows untracked files as "changed but not updated" .
而且您不能提交未跟踪的文件。不过,您应该可以选择添加它们。
对于 EGit(Eclipse 中的 Git),请参阅 this tutorial ,以及 Eclipse wiki EGit tutorial :

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


  • 跟踪文件是上次快照中的文件或新加入索引的文件。它们可以是未修改的、修改的或暂存的。
  • 未跟踪文件是所有其他不在最后一个快照中且未添加到索引中的文件。

  • 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

    关于Git 未将更新的 css 和 html 文件显示为已更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4603130/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com