致命:添加文件失败

问题描述 投票:0回答:1

我是github的新手。请给我一个更好的解决方案和解释。我想将Django文件添加到github中。但它显示以下错误:

致命:添加文件失败

我的代码在这里:(venv)C:\ Users \ Tekson \ Desktop \ geo \ basic> git init在C中初始化的空Git存储库:/Users/Tekson/Desktop/geo/basic/.git/

    (venv) C:\Users\Tekson\Desktop\geo\basic>git add .
    warning: LF will be replaced by CRLF in basic/static/js/lib/jquery-3.3.1.min.js.
    The file will have its original line endings in your working directory
    warning: LF will be replaced by CRLF in basic/static/js/lib/leaflet.ajax.js.
    The file will have its original line endings in your working directory
    warning: LF will be replaced by CRLF in basic/static/js/lib/leaflet.ajax.min.js.
    The file will have its original line endings in your working directory
    warning: LF will be replaced by CRLF in basic/static/js/lib/shp.js.
    The file will have its original line endings in your working directory
    error: open("data/wifi_network/nodes.shp.DESKTOP-OGJ64C4.10688.10176.sr.lock"): Permission denied
    error: unable to index file data/wifi_network/nodes.shp.DESKTOP-OGJ64C4.10688.10176.sr.lock
    fatal: adding files failed
github fatal-error
1个回答
1
投票

尝试找到这个文件:

数据/ WIFI_NETWORK / nodes.shp.DESKTOP-OGJ64C4.10688.10176.sr.lock

并删除它,以及结尾.lock的任何其他文件。

锁文件指示何时写入文件,并且通常在使用该文件的应用程序关闭后删除,但有时当应用程序崩溃时,它们不会被删除并导致麻烦。

© www.soinside.com 2019 - 2024. All rights reserved.