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

前端 未结 2 1837
执笔经年
执笔经年 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 08:59

    Hmm perhaps you are in a directory which is not writable?

    Normally you can create a directory.

    mkdir test
    cd test
    git init
    

    then you init an empty GIT repo in the test folder and you should see a folder named ".git" which is hidden. Perhaps you can try to build a bare repository.

    git --bare init
    

    But your problem sounds a bit strange. Du you run your command with all rights?

提交回复
热议问题