且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

GIT新/修改/删除的文件列表

更新时间:2023-12-05 17:24:22

The best way to list these file is using git status --porcelain

For example: To remove previously deleted files:

git status --porcelain | awk 'match($1, "D"){print $2}' | xargs git rm