Git Modified - 未正确添加对象

时间:2013-02-06 23:56:43

标签: git

我一直有这个问题,它一直显示修改:Aisis-Core:

nothing added to commit but untracked files present (use "git add" to track)
adam@adam-VirtualBox:~/Dropbox/AisisGit/Aisis-Core$ git add -A
adam@adam-VirtualBox:~/Dropbox/AisisGit/Aisis-Core$ git status
# On branch tests
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#   new file:   Aisis-Core
#   new file:   functions.php
#   new file:   index.php
#   new file:   style.css
#
# 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)
#   (commit or discard the untracked or modified content in submodules)
#
#   modified:   Aisis-Core (modified content, untracked content)

如果我 git add -A git add Aisis-Core 然后执行git状态我仍然看到已修改:Aisis-Core < / p>

想法?

1 个答案:

答案 0 :(得分:0)

查看git documentation page上的教程。 git add只会暂时更改,直到您执行git commit它们并未真正锁定在存储库中。