[GitHub] Show “fatal: Unable to create ‘/../.git/index.lock’: File exists.” error messgae Git 無法建立 .git/index.lock 錯誤
(GitHub, .git/index.lock, error handling)
推code至Git時,出現下圖的錯誤訊息,無法推上

fatal: Unable to create ‘/Users/peggytsai/Documents/Eyes/eyesmedia-afp-ios/.git/index.lock’: File exists.
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.
Cannot save the current index state
參考下方文章
嘗試關掉後並無作用,因此嘗試刪除index.lock
cd <index.lock上層資料夾路徑>
rm -rf index.lock

刪除後,GitHub可正常使用
