"D:\Program Files\Git\bin\git.exe" checkout -b "gyn_xxx" "34e90a68"
fatal: Unable to create 'D:/xxx/xxx/.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.
Done
Press Enter or Esc to close console...
從倉庫里clone了一個老的項目下來,新建分支和checkout都報這個錯,
百度,google了發現都是叫刪除 index.lock文件的和重啟電腦,試了下還是不行,
最終在http://stackoverflow.com/questions/7860751/git-fatal-unable-to-create-path-my-project-git-index-lock-file-exists
這里找到了一種可行的方式:
就是設置文件的權限
Paste_Image.png
將項目的權限設為everyone可以全部操作,重新checkout后可行了。