今天学习git的使用,发现输入任何命令都提示
fatal: Unable to create 'C:/Users/zmysna/mydir/.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
于是找到C:/Users/zmysna/mydir/.git/index.lock这个路径
输入
rm -rf C:/Users/zmysna/mydir/.git/index.lock
删除后即可正常使用