Git from the command line does not work, but using a Git client (e.g. SmartGit)

I am on a Mac and I usually run most of my git commands through the command line. Suddenly all git command line commands stopped working this morning. If I type in 'git status', the terminal seems to hang for about a minute and shows nothing:

01412b-malberts:f2 sbanerjee$ git status
01412b-malberts:f2 sbanerjee$ 

Other git commands, such as pull, push, and branch, have similar behavior.

Oddly enough, using a git GUI like SmartGit (which actually uses the same git executable as a command line) seems to work fine. I see modified files, push, pull, everything.

I tried uninstalling and reinstalling git, re-cloning my repo and rebooting my laptop. Can someone help me get my command line git commands?

+5
source share
2 answers

Please completely ignore this question ... Sorry guys, but I was trolled by the employee who ran the script in my terminal, which made my mac use SimpleText to get all the output from git commands ...

+2
source

Try running git with some debugging:

GIT_TRACE=2 git status

Sounds like a local (library?) Problem, not a git error.

0
source

All Articles