TortoiseGit:更新代碼出現Another git process seems to be running in this repository異常處理

1.異常信息

Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue

git的進程已經在一個編輯器中被打開。請確保所有的進程都結束,然後再次嘗試。如果仍然失敗,可能是上個運行中的git崩潰,手動移除這個文件。

2.異常解決辦法

  • .git裏的文件,裏面有個index.lock文件。刪除之後再繼續git操作就沒問題了。

3.具體操作

  • window下打開‘我的電腦’,在工具/文件夾選項/查看/裏 勾選 顯示隱藏的文件、文件夾或驅動器。然後進入文件夾刪除index.lock文件。
  • 或者你可以這樣:命令行裏 cd 到 .git 這個目錄下, 輸入命令: del index.lock 即可刪除。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章