7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git寄せ書き-トラブルシューティング-

Last updated at Posted at 2013-12-26

git checkoutしようとした時
「error: The following untracked working tree files would be overwritten by checkout」

メッセージが出る原因

【対応策】
この問題が発生した場合は、以下の手順をお試しください。
git reset --hard FETCH_HEAD

【要調査】
このresetが何で--hardが何でFETCH_HEADが何なのか

【参考】
http://qiita.com/notanota/items/7ce3b9813b417db359f5


git checkout しようとした時
fatal: Unable to create '/[directory]/.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

【原因】
index.lockが解除されなかった

【対応策】
rm index.lock

【要調査】
index.lockが解除されない原因

【参考】
http://nonoswitch.hatenablog.com/entry/2012/11/17/225702

7
6
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
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?