A few days ago, without intentionally changing anything, my git stopped working.
I can run git status
and git diff
which work fine, and I can ssh into our git server, but if I run any of git pull|push|fetch|clone
, it just hangs and does nothing. My internet connection is fine and I've left it to run for ~1.5 hours trying to clone a very small repo. There's no output at all, it just does nothing.
No one else is having issues with their git, so I'm quite confused.
Any help would be much appreciated.
Edits
Local: git version 1.8.3.2
git remote -v: shows 2 sets of 2 git repo locations (origin and upstream for fetch/push). All of this form: origin|upstream git@foo.bar.com:repo_path.git (fetch|push)
Local platform: Linux (Ubuntu 13.10)
ssh -T git@foo.bar.com takes a while and then results in: Welcome, [user]. Use git to push/pull your repositories
Running this: [user]@computer:~/work/git/repo$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git fetch
results in this:
trace: built-in: git 'fetch'
trace: run_command: 'ssh' 'user@git.foo.com' 'git-upload-pack '\''/home/git/repo/'\'''
[waits seemingly indefinitely]
but if I run ssh user@git.foo.com
, I get into the server.