Why is git hanging - have to press enter twice after commands?

前端 未结 2 1850
执笔经年
执笔经年 2021-02-07 08:12

Edit: Summary: Every command entered in Git produces a hanging cursor which then says \"bad input\" if anything is typed before enter is pressed. No commands produce any

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-07 09:12

    Considering you are on OS X, and after Keith Thompson's comment, it is possible

    • you have an alias in place for git, invoking credential-osxkeychain.
      See "Git hangs indefinitely - broke with osx credential helper I think":

    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.

    • or you have several git installed:

    It looks like you installed the git-credential-osxkeychain wrapper in the wrong place (did you cp to /usr/bin/git instead of /usr/local/git/bin?)
    To fix, you'll want to just delete /usr/bin/git; assuming git is still installed in /usr/local/bin it should take over.

    It's actually installed to /usr/local/git/bin so I just added that to my PATH.

提交回复
热议问题