Git操作的過(guò)程中突然顯示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 remove the file manually to continue…?
git被另外一個(gè)程序占用卑惜,重啟機(jī)器也不沒(méi)有解決
原因在于Git在使用過(guò)程中奔潰,部分被上鎖資源沒(méi)有被釋放導(dǎo)致的栋盹。
解決方案:進(jìn)入項(xiàng)目文件夾下的 .git文件中(顯示隱藏文件夾或rm .git/index.lock)刪除index.lock文件即可。