I was attempting to move some files from one repository to another and I ran into an error [Git push failed: OSError: remote: error: cannot lock ref 'refs/heads/main]. The push was denied a couple of times for different repositories, and I’ve been experiencing this issue on and off since morning.
In order to resolve this locally, I used the following commands (as suggested by Lucio)-
- cd <Enter/the/path/to/the/slave/repo>
- !git commit -m “merge”
- !git push
And it worked!
However, I believe the issue still exists at HF Spaces’ level, because the push was denied a couple of times, and for different repositories.
Please help in fixing this ASAP. Thanks.