Git rename from index.lock to index failed

前端 未结 16 2035
遇见更好的自我
遇见更好的自我 2020-11-30 06:42

Using the GitHub Windows client I did a sync to pull remote changes to my local machine, but before finishing the sync, I ran out of disk space and the sync failed.

16条回答
  •  执笔经年
    2020-11-30 07:00

    I was seeing this Rename from '.git/index.lock'... message when attempting to execute

    git checkout -b my-branch

    The fix for me was to run the command line as admin.

    Specifically I was using the excellent cmder application as a non-admin, which resulted in the rename message appearing. By running cmder as an admin, then performing the checkout again, it worked fine.

提交回复
热议问题