Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
611 views
in Technique[技术] by (71.8m points)

macos - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...