我做了一个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”)
所以...一切正常但很烦人。我还需要做什么?我承诺了。这已经持续了好几天了。
答案 0 :(得分:1)
执行:
git rm `git ls-files --deleted` && git commit
然后
git push
答案 1 :(得分:0)
看起来你删除了你的本地文件,但这个删除没有在git中提交(也许你在此过程中做了git reset
或其他一些行动。)
尝试重新运行
git rm <files>
git commit
如果您想将这些修改发送到远程服务器:
git push origin