![](/img/trans.png)
[英]git submodules - error: could not lock config file .git/modules/path/to/vimlib/config: No such file or directory
[英]error: could not lock config file .git/config: No such file or directory
顯示以下錯誤:
heroku git:remote -a intense-journey-57915 Error: Command failed: git remote add heroku https://git.heroku.com/intense-journey-57915.git error: could not lock config file.git/config: No such file or directory fatal: could not set 'remote.heroku.url' to ' https://git.heroku.com/intense-journey-57915.git '
其實這確實存在。 系統變量 HOME 設置正確。 在 VS Code 中工作(以管理員身份)。 Windows 10. Git 版本 2.23.0 知道如何解決嗎?
其實這確實存在。
確保您位於正確的文件夾中,即在您的本地 Git 存儲庫中。
輸入簡單的git config -l
例如:由於 Git 2.8(2018 年 3 月),它會說它是否在 Git 存儲庫之外執行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.