I'm getting this error when trying to set the git init:
$ git init error: could not lock config file C:/Users/khaled/Desktop/firstTemplete/.git/config: No such file or directory fatal: could not set 'core.repositoryformatversion' to '0'
anyone have any idea ?
In Windows, the problem could occur due to the unauthorized changes for a folder are blocked by the virus and threat protection software.
Run "Git init" from cmd. DONE!