我的一個git倉庫存在一個常量問題。我不斷收到以下錯誤:GIT:/.git/index.lock':文件存在
fatal: Unable to create 'v:/path/to/files/.git/index.lock': File exists.
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.
我曾嘗試:RM -f ./.git/index.lock按計算器上的另一個線程,但我每次都得到這個錯誤:RM:不能斷開鏈接`./.git/index.lock':權限被拒絕
當我關閉aptana(我在終端中使用git)時,我仍然無法刪除文件。
任何想法如何解決這個問題?
另一個要注意的是這個混帳回購協議是很慢的時候我偶爾會在其內提交(它允許每10名試圖左右我)
感謝
它爲我 http://stackoverflow.com/questions/17916339/error-in-deleting-addind-file-from-appharbor-using-git-unable-to-create-f-git – Shailesh 2013-07-29 05:41:40
您是否擁有超級用戶或root用戶對您正在使用的系統的訪問權限?換句話說,你擁有電腦嗎?還是你在公共電腦上,比如校園實驗室? – 2013-10-08 17:59:49
這些命令適用於unix和osx系統。您可以轉到資源管理器中的index.lock文件並將其刪除。如果你沒有看到.git文件夾。您需要先在您的文件夾管理器中設置顯示隱藏文件 – Jinxi 2014-12-05 08:21:37