問(wèn)題描述
在使用git commit “xxx”的時(shí)候,修改記錄文件時(shí),按錯(cuò)了按鍵導(dǎo)致下次commit時(shí)報(bào)錯(cuò)。
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.
大概的意思就是還有一個(gè)進(jìn)程正在運(yùn)行,請(qǐng)保證所有進(jìn)程結(jié)束后進(jìn)行此操作。如果不行,請(qǐng)嘗試手動(dòng)刪除文件后再繼續(xù)。
解決辦法
進(jìn)入到工作目錄.git下,如果你沒(méi)有找到這個(gè)目錄,可能是沒(méi)有開(kāi)啟查看隱藏文件的選項(xiàng),你需要在文件夾選項(xiàng)中進(jìn)行相關(guān)設(shè)置。刪除index.lock文件,然后開(kāi)啟git-bash,重新進(jìn)行commit就可以了。
2017-11-29_223108.png