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
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?
Considering you are on OS X, and after Keith Thompson's comment, it is possible
credential-osxkeychain
.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.
It looks like you installed the
git-credential-osxkeychain
wrapper in the wrong place (did youcp
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 myPATH
.