Re: Fixing a broken GIT repo
From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:52:30
On Fri, Nov 18, 2011 at 2:49 PM, Johannes Sixt [off-list ref] wrote:
Am 11/18/2011 11:54, schrieb Bart van den Burg:quoted
I somehow managed to break my GIT repo. Whenever I try to clone or fetch from a clean local repo, I get an error. I'm able to go back on the server, to the very last commit where everything works, but as soon as I make a change locally and push it, it breaks again....quoted
$ git clone git@git.samson-it.nl:/home/git/shifter_rai...quoted
Receiving objects: 100% (9557/9557), 2.85 MiB | 1.06 MiB/s, done....quoted
$ git push Counting objects: 4, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 271 bytes, done. Total 3 (delta 1), reused 0 (delta 0) To git@git.samson-it.nl:/home/git/shifter_rai cc5693a..85d1ee9 master -> masterIt looks like you are pushing via git protocol from Windows (Git-for-Windows). This is known to dead-lock in most cases, and even though it did not here, I would not be surprised if it had other issues. Do not do it. Push via ssh instead.
Does it? Doesn't the "To git@git.samson-it.nl:/home/git/shifter_rai" line suggests ssh?