Why does git freeze on git-credential-osxkeychain sometimes?

后端 未结 1 1272
不知归路
不知归路 2020-12-18 10:21

When I do cd some-repo; git push origin master in my bash terminal, it doesn\'t ask me for username/password because I guess git has already saved that (it was

相关标签:
1条回答
  • 2020-12-18 11:07

    Without much information, my guess is that the hanging depends on whether or not your login keychain is locked at the time. On the Mac, if the login keychain is unlocked, then the query to get your username and password can proceed unhindered. But if the keychain is locked, then then Mac OS X wants to prompt you for your login password to unlock the keychain. I suspect the dialog box is there, just hidden behind something, so you may have missed it. It'll wait for you to type in your password, effectively hanging the process.

    There is more information on the gitcredential infrastructure here, and more about the API (including the command line for a helper) here.

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