要清空本地暫存區,可以使用以下命令:
git reset
--hard
git reset --hard
請注意,在使用 git reset --hard 命令之前,請確保沒有重要的修改,因為這個命令會徹底丟棄所有修改的內容并無法恢復。