开发者

How can I commit only deletes with Git?

开发者 https://www.devze.com 2023-04-01 17:00 出处:网络
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:

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

精彩评论

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