Git hangs indefinitely - broke with osx credential helper I think

前端 未结 3 890
半阙折子戏
半阙折子戏 2020-12-03 23:48

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

相关标签:
3条回答
  • 2020-12-04 00:09

    Try "git" status (with the quotes). If that works, you've aliased git to something else (probably alias git="git credential-osxkeychain"), and you should look in ~.profile to see if you can remove the alias.

    (See the attached commentary for the debugging steps and eventual resolution).

    0 讨论(0)
  • 2020-12-04 00:12

    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

    0 讨论(0)
  • 2020-12-04 00:31

    As nneonneo said above, the reason is that files - git-credential-osxkeychain and git - are installed on wrong path (path, which is not default in /etc/paths, which is not on the first line in /etc/paths). Answers above didn't work for me. What exactly I tried : 1) change order of lines in file /etc/paths, but file /etc/paths is not available for changing on Mavericks 2) delete /usr/bin/git - this also didn't help me 3) mv /usr/bin/git /usr/bin/git_old ln -s /usr/local/git/bin/git /usr/bin/git also didn't. So I decided to describe my way. I manually take files - git-credential-osxkeychain and git from /usr/local/git/bin and put in /usr/bin/git (cause /usr/bin/git - is the first path in /etc/paths). To get the path like /etc/paths in finder, just push Command+Shift+G and put path.

    0 讨论(0)
提交回复
热议问题