[Git] Git rename from index.lock to index failed.
前言
某天在機房 Commit 的時候一直頻繁下列訊息:$ git commit -m "bug fixed" Rename from '.git/index.lock' to '.git/index' failed. Should I try again? (y/n)...y Rename from '.git/index.lock' to '.git/index' failed. Should I try again? (y/n)...y Rename from '.git/index.lock' to '.git/index' failed. Should I try again? (y/n)...詢問您是否要再嘗試一次,但...再怎麼嘗試情況都一樣!這怎麼一回事?
其實是因為...
權限的關係導致檔案無法被重新命名,此時你只要使用系統管理員權限開啟你所習慣使用的終端機,重新下指令即可。.
.
.
原來這一切都是因為權限不足阿!
留言
張貼留言