代码之家  ›  专栏  ›  技术社区  ›  prosseek

分支已更新,但我收到“未提交更改”消息

git
  •  1
  • prosseek  · 技术社区  · 10 年前

    我使用这些命令将所有更改上载到git服务器。

    • git添加-A.
    • gitcommit-m“注释”
    • 数字推送

    然后,我收到了消息 git status :

    On branch master
    Your branch is up-to-date with 'origin/master'.
    
    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git checkout -- <file>..." to discard changes in working directory)
    
        modified:   content/2014/03/14/pic/photo.JPG
    

    我试过了 git commit -ma ,但我得到了相同的结果。

    这可能有什么问题?我使用git版本1.9.3。

    git --version
    git version 1.9.3 (Apple Git-50)
    

    编辑

    我尝试了新的结账,但仍然有同样的问题。

    编辑2

    将photo.JPG目录重命名为photo.JPG,我使用的是不区分大小写的Mac OS X。

    2 回复  |  直到 10 年前
        1
  •  0
  •   Jose Martinez    10 年前

    它可能是Git的旧版本吗?

    If no <pathspec> is given when -A option is used, all files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories).

        2
  •  0
  •   prosseek    10 年前

    该文件已使用大写字母以相同的名称重命名。我必须从存储库中删除所有文件以推送更改,然后将删除的文件还原回去以重新发布更改。现在一切都好了。