Git hangs indefinitely - broke with osx credential helper I think

前端 未结 3 913
半阙折子戏
半阙折子戏 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: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.

提交回复
热议问题