git 提交报fatal: Unable to create '

2023-05-11  本文已影响0人  song91425

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree add -f -- xxx/xx/xxx.h
fatal: Unable to create '/Users/xx/Documents/xxx/.git/index.lock': File exists.

解决方法,到给定路径'/Users/xx/Documents/xxx/.git/index.lock' 删除index.lock 即可。

上一篇 下一篇

猜你喜欢

热点阅读