Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git hangs indefinitely - broke with osx credential helper I think

I got tired of typing my password for my bitbucket repo so I looked up a way to use ssh keys but happened upon the osx credential keychain. I thought I had installed it all correctly by following along with what was instructed in the git-scm book but something bad happened...I can't use git at all!! I then went and rm'd the credential-osxkeychain but that didn't fix my issue, neither did uninstalling and reinstalling git.

If I go into a repo that I had previously pulled down, change a file and run git status it hangs indefinitely.

If I make a new directory, cd into it and run git init that will hang indefinitely as well.

When I run git without any arguments the following is printed out: Usage: git credential-osxkeychain <get|store|erase>. I already looked at my /Applications/Utilities/Keychain Acces.app but I couldn't find anything to change. At this point I just want git back...I'm fine with typing my password.

For reference I am using OSX 10.7.2

edited to add: which git returns /usr/bin/git

like image 931
dreamriver Avatar asked Jan 16 '23 11:01

dreamriver


1 Answers

To fix this I reinstalled git from http://git-scm.com/download/mac and then added /usr/local/git/bin to the top of the file /etc/paths

like image 68
Dan2552 Avatar answered Jan 29 '23 07:01

Dan2552