开发者

How do I count how many files deleted from GIT repo?

开发者 https://www.devze.com 2023-02-15 01:39 出处:网络
I am new to GIT. In BK, when user \"bk rm\" files, they are sitting in the deleted area. I can count how many files have been deleted by users. How do I count the user-deleted files in GIT? I did \"gi

I am new to GIT. In BK, when user "bk rm" files, they are sitting in the deleted area. I can count how many files have been deleted by users. How do I count the user-deleted files in GIT? I did "git status":

=>> git status

On branch master

nothing to commit (working directory clean)

Thank开发者_如何学Gos.

Albert


 git-ls-files --deleted

should do the trick. If you just want a count, you can

| grep -c
0

精彩评论

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