0

我做了一个 git rm 文件。

现在..每次我提交...我都会收到这些消息列表。

#   deleted:    requester2/temp/snippets-2012-09-30-203341.870515.html
#   deleted:    requester2/temp/snippets-2012-09-30-204815.768443.html
#   deleted:    requester2/temp/snippets-2012-10-01-164818.022385.html
#   deleted:    requester2/temp/snippets-2012-10-01-165008.142723.html
#   deleted:    requester2/temp/snippets-2012-10-01-170336.512638.html
#   deleted:    requester2/temp/snippets-2012-10-01-170805.974529.html
#   deleted:    requester2/temp/snippets-2012-10-01-172309.579716.html
#   deleted:    requester2/temp/snippets-2012-10-01-180812.236897.html
#   deleted:    requester2/temp/snippets-2012-10-01-180949.890997.html
#   deleted:    requester2/temp/snippets-2012-10-01-181836.475853.html
#   deleted:    requester2/temp/snippets-2012-10-01-182011.676711.html
#   deleted:    requester2/temp/snippets-2012-10-01-193522.135573.html
#   deleted:    requester2/temp/snippets-2012-10-01-194152.563202.html

没有添加到提交的更改(使用“git add”和/或“git commit -a”)

所以......一切正常,但很烦人。我还需要做什么?我答应了。这已经持续了好几天了。

4

2 回答 2

1

做:

git rm `git ls-files --deleted` && git commit

然后

git push

于 2012-10-09T08:14:16.130 回答
0

看起来您删除了本地文件,但此删除并未在 git 中提交(也许您在此过程中做了一个git reset操作,或者其他一些操作)。

尝试重新运行

git rm <files>
git commit

如果您想将这些修改发送到远程服务器:

git push origin
于 2012-10-09T08:23:57.900 回答