简体   繁体   English

错误:无法锁定配置文件.git/config:没有这样的文件或目录

[英]error: could not lock config file .git/config: No such file or directory

Displays the following error:显示以下错误:

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 ' 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 '

Actually this does exist.其实这确实存在。 System variable HOME set correctly.系统变量 HOME 设置正确。 Working in VS Code (as admin).在 VS Code 中工作(以管理员身份)。 Windows 10. Git version 2.23.0 Any idea how to solve it? Windows 10. Git 版本 2.23.0 知道如何解决吗?

Actually this does exist.其实这确实存在。

Make sure you are in the right folder, meaning in your local Git repository.确保您位于正确的文件夹中,即在您的本地 Git 存储库中。
Type simple git config -l for instance: since Git 2.8 (March 2018), it will say if it is executed outside a Git repository .输入简单的git config -l例如:由于 Git 2.8(2018 年 3 月),它会说它是否在 Git 存储库之外执行

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 git submodules - 错误:无法锁定配置文件 .git/modules/path/to/vimlib/config:没有这样的文件或目录 - git submodules - error: could not lock config file .git/modules/path/to/vimlib/config: No such file or directory git错误“无法锁定配置文件.git / config权限被拒绝” - git error “could not lock config file .git/config permission denied” SVN到GIT存储库的迁移,错误:无法锁定配置/元数据文件 - SVN to GIT repositories migration, Error : could not lock the config / metadata file 配置文件迁移后“Git 错误:无法锁定配置文件 C:/Users/old_profile/.gitconfig: No such file or directory” - “Git error: could not lock config file C:/Users/old_profile/.gitconfig: No such file or directory” after profile migration 错误的错误消息“无法锁定配置文件.git / config:权限被拒绝”,原因是未进行分阶段的更改; 在安装openJDK 8时在Homebrew中 - error of “could not lock config file .git/config: Permission denied” due to unstaged changes; in Homebrew while installing openJDK 8 无法使Tower(OSX git GUI)忽略文件权限–“无法锁定配置文件.git / config”错误 - Can't get Tower (OSX git GUI) to ignore file permissions – “could not lock config file .git/config” error "如何修复 Git for Windows 错误:“无法锁定配置文件 C:\/file\/path\/to\/.gitconfig: 文件存在”?" - How to fix Git for Windows error: "could not lock config file C:/file/path/to/.gitconfig: File exists"? 错误:无法锁定配置文件 C:/SPB_Data/.gitconfig:没有这样的文件或目录 - error: could not lock config file C:/SPB_Data/.gitconfig: No such file or directory git:无法锁定配置文件权限被拒绝和无效参数 - git: could not lock config file Permission denied & Invalid argument Git错误:无法提交配置文件 - Git error: could not commit config file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM