The following git commands hang (do not respond) in one of my repositories:
git status
git diff
git stash
git add
The fact that I cannot git add
leads me to believe that the unresponsiveness isn't simply due to very large files. Since git stash
also hangs, I don't think it's merely a problem with communicating with origin.
git remote show origin
shows the expected remote URL. I'm working on a branch and have checked that it has not been renamed. (FWIW, the origin is hosted on bitbucket.)
All the above commands respond as expected in a different repo, so it's not due to the internet connection.
Any other tips for troubleshooting this?
GIT_TRACE=1 GIT_CURL_VERBOSE=2 git status
show? Also have you triedgit -vvv
? – Noggingit
command will wait for that other process to release the lock, before proceeding. If that other process never lets go, Git never proceeds. – Guacogit status
now that it's working... – Zayasgit fsck
to verify the integrity of your repository. – Tiki