分支已更新,但我有 "Changes not staged for commit" 消息
Branch is updated, but I have "Changes not staged for commit" message
我使用这些命令将所有更改上传到 git 服务器。
- git 添加 . -A
- git commit -m "COMMENT"
- git推
然后,我收到消息 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,我用的MacOS X不区分大小写
会不会是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).
文件已重命名为同名且大写。我必须从存储库中删除所有文件以推送更改,然后恢复删除的文件以重新发布更改。现在一切都很好。
我使用这些命令将所有更改上传到 git 服务器。
- git 添加 . -A
- git commit -m "COMMENT"
- git推
然后,我收到消息 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,我用的MacOS X不区分大小写
会不会是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).
文件已重命名为同名且大写。我必须从存储库中删除所有文件以推送更改,然后恢复删除的文件以重新发布更改。现在一切都很好。