Git on OSX hangs on each command: How to fix it?
git
Solution
Seems with your specific approach to installing git, you might want to follow these instructions: https://help.github.com/articles/set-up-git
# Test for the cred helper
git credential-osxkeychain
# Download the helper
curl -s -O \
http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
# Fix the permissions on the file so it can be run
chmod u+x git-credential-osxkeychain
# Now you need to install the helper into the
# same directory where Git itself is installed.
# Find where git is installed
which git
# Move the file to the path `which git` returned so git can access it
sudo mv git-credential-osxkeychain /usr/local/git/bin/
# Set git to use the osxkeychain credential helper
git config --global credential.helper osxkeychain
Personally, I just use `homebrew` and its as easy as `brew install git`
Problem
I am running mac osx lion. My problem is that git hangs after I type in each command. If i type in `git` then I get `Usage: git credential-osxkeychain <get|store|erase>` When I try to type in something else, for example `git status` the terminal just hangs, but once I hit enter again, then it goes back to the normal terminal prompt, but the command never goes through. How do I get git to work?