【发布时间】:2012-09-17 05:51:31
【问题描述】:
git add 似乎不适用于这些已删除的文件,那么如何提交更改?
$ git status
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: ci/ci/__init__.py
# deleted: ci/ci/settings.py
# deleted: ci/ci/urls.py
# deleted: ci/ci/wsgi.py
# deleted: ci/manage.py
#
no changes added to commit (use "git add" and/or "git commit -a")
【问题讨论】:
-
你到底想在这里完成什么?你想让 git 记录你删除文件的提交吗?
-
@ColinR i just mv ci directory to be web
-
那么您想将您从
ci移动到web的文件添加到提交中吗?您是否尝试过git add .(这将添加所有未跟踪和未忽略的文件)?
标签: git version-control rm