I have an issue: while git pushing I’ve got an error:
Fetching remote heads...
refs/
refs/tags/
refs/heads/
updating 'refs/heads/master'
from 5c797ac9a561aef9c1955ba7d3f566e9474454a7
to f57849e2e68454e22dcef2d73383e489e30e5b14
sending 10 objects
PUT c757df860185122ff87c0009d4ead36aabbdd2a8 failed, aborting (22/400)
PUT a6c48f26df4fa29f4d68501bfed3901ba43fce26 failed, aborting (22/400)
^CRemoving remote locks...
Next git push has succeeded. But after that git clone start to warn that warning: You appear to have cloned an empty repository. I have the whole history safe at my local copy. Is there a way to push it to the remote server?
I’ve tried git push -f and git push -f origin master but none of them helped me.
You can get a “bare” checkout:
and copy the project.git folder on the server (if you using a WebDav HTTP server).