Remote: error: cannot lock ref 'refs/heads/main'
I’m getting this error when trying to push a commitEnumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 392 bytes | 392.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: error: cannot lock ref 'refs/heads/main': Unable to create '/data/37/75/3775cbf95ac9797e4ae71dc52e320a39d20e51f951d0b3f88d8243d4098cfd39.git/./refs/heads/main.lock': File exists.
remote: 
remote: Another git process seems to be running in this repository, e.g.
remote: an editor opened by 'git commit'. Please make sure all processes
remote: are terminated then try again. If it still fails, a git process
remote: may have crashed in this repository earlier:
remote: remove the file manually to continue.
2022-07-24T08:53:12Z
This issue is now fixed. It was an edge case with our Git system. Sorry for the inconvenience!