LoginSignup
0
0

More than 5 years have passed since last update.

Gitでindex.lockある時pull, commit, pushできないエラー

Last updated at Posted at 2017-05-16

Screen Shot 2017-05-16 at 15.08.43.png

エラーの原因としては、
projectの中でindex.lockファイルがあるのでです。
index.lockファイルを削除必要です。

削除方法は!
1) Finderで削除する方法
  index.lockファイルはhiddenファイルタイプなのでFinderで見られないです。
見られるため Optionを更新必要です。

2) Terminalで削除する方法
  “rm -f .git/index.lock”を projectPathの中で実行したらindex.lockファイル削除できます。

index.lockファイルを削除終わったらもういっかいpull, commit, pushやって見てください。
もし、出来ない場合もう一回 1 or 2 をやってください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0