简体   繁体   中英

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 '

Actually this does exist. System variable HOME set correctly. Working in VS Code (as admin). Windows 10. Git version 2.23.0 Any idea how to solve it?

Actually this does exist.

Make sure you are in the right folder, meaning in your local Git repository.
Type simple git config -l for instance: since Git 2.8 (March 2018), it will say if it is executed outside a Git repository .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM