开发者

How can I commit only deletes with Git?

I know how to do:

git commit -a -m "whatever"开发者_如何学编程

but I don't want to commit everything, just push up some files to be deleted.


If you only want to add deleted files, try:

git ls-files --deleted -z | xargs -0 git rm
git commit
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜