[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可正常使用

--

--

--

學習 Swift iOS App 開發的學生作品集

Recommended from Medium

FHIR and Its Benefits for the Healthcare System

Blockchain App Development Outlook: Will We All Write Apps in the Future?

Why Art Blocks Uses JavaScript in Its Smart Contract

Janell Wilson talks life as a Technical Program Manager at Knowledge Anywhere

TPM and Green River College graduate Janell Wilson

Best Text To Speech Tools With Gujarati Accent

Want to know the cost of app development 2021? Here is a complete guide!

Hyper, zsh, zsh-autosuggestions

SwiftUI : A Brief Introduction on View

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Peggy Tsai 

Peggy Tsai 

iOS & Golang 隨手記 www.linkedin.com/in/peggytsaifc 歡迎+Linkedin交流~

More from Medium

Nightly builds with GoReleaser and GitHub Actions

How to build an iOS video call app with ZEGOCLOUD’s ZEGOCall SDK

Biometrics, the future of Login?