1. 程式人生 > >git add . 出現的錯誤

git add . 出現的錯誤

錯誤資訊如下: If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.

解決方法: 在這裡插入圖片描述

如果沒有上邊顯示的路徑,使用Git管理專案,都會有對應的 .git 資料夾,找到專案對應的 .git資料夾也可以找到對應的檔案。將檔案刪除掉即可,刪除掉檔案對專案和Git不會影響。 產生錯誤資訊的原因:待補充