Linux技巧-删除 git项目文件夹等需要重复需要输入 y/yes 解决办法
·
在删除git项目的文件夹时,需要重复输入 y/yes ,让人烦恼!
[zjf@server test]$ rm -r ./git-project
rm: remove write-protected regular file ‘./huyu-ai-train/.git/objects/74/3aa47f1f6a27ed0ad7422d2de89a8797324451’? y
rm: remove write-protected regular file ‘./huyu-ai-train/.git/objects/b2/650343c0174ad8a9bbe95b8e50ff4c74044986’? y
rm: remove write-protected regular file ‘./huyu-ai-train/.git/objects/b2/99214a3303e198b6adab7b456cb50dd40983c3’?
.....
那么,要怎么办呢?
[zjf@server test]$ yes | rm -r ./git-project
[zjf@server test]$
DONE
更多推荐
已为社区贡献5条内容
所有评论(0)