2012-10-09 82 views
0

我做了一個git rm文件。Git和遠程刪除。如何擺脫刪除郵件

現在,我每次提交...我得到這些消息列表。

# 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的承諾-A」)

所以......所有的作品,但相當煩人。我還有什麼要做?我承諾。這已經持續了好幾天了。

回答

1

務必:

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

然後

git push

0

看起來你刪除你的本地文件,但這個缺失不是git的承諾(也許你沒有沿途git reset,或其他一些行動)。

嘗試重新運行

git rm <files> 
git commit 

,如果你想這些修改發送到遠程服務器:

git push origin