1. 程式人生 > >Unable to create 'E:/.git/index.lock': File exists.

Unable to create 'E:/.git/index.lock': File exists.

Unable to create 'E:/code/fund/at-fundsys/at-fundsys/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. 

產生原因:可能是由於不正確操作git或者輸錯命令導致;

解決方法:

同級目錄下用rm -f ./.git/index.lock刪除

或者直接進入資料夾找到對應檔案刪除