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?
Seems with your specific approach to installing git, you might want to follow these instructions:
https://help.github.com/articles/set-up-git
Personally, I just use
homebrewand its as easy asbrew install git