在删除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

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐