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

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐