I am trying to initialize a new git repo. When I execute git init
in the target directory I receive the following:
error: chmod on /r/test_file_path/.git/config.lock failed: Invalid argument
fatal: could not set 'core.repositoryformatversion' to '0'
I've never run into this issue before and the solutions i've looked up appear to be odd and disjointed. I've initialized other git repos in this directory before and have never had a problem. Any thoughts what this could be?
Are the files synced/on your device?
Got the same error when running git in a folder containing "online" files.
After starting OneDrive git worked correctly again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With