互動式清潔

git clean -i

將列印出要刪除的專案,並通過以下命令請求確認:

Would remove the following items:
  folder/file1.py
  folder/file2.py
###  Commands 
    1: clean        2: filter by pattern        3: select by numbers        4: ask each
    5: quit        6: help
What now>

互動式選項 i 可以與 Xd 等其他選項一起新增。