git分支切换需要半分钟?

git branch switch takes half a minute?

从工作中得到一台更强大、更新鲜的机器,开始安装开发工具,这简直是噩梦,我从来没有遇到过 git 的性能问题旧机器。这是无可厚非的:

ons-mbp:spec ALE$ time git checkout fsfs

Switched to branch 'fsfs'

real    0m30.080s
user    0m0.007s
sys 0m0.006s

    ons-mbp:spec ALE$ time git checkout master

Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.

real    0m30.083s
user    0m0.007s
sys 0m0.007s

尝试重新安装不同的 git 版本,通过自制软件和手动尝试 - 零效果。

任何人都可以提供提示吗?

OS版本:10.9.5

全新安装时完全忘记了设置全局用户详细信息。

 git config --global user.name "Test Test"
 git config --global user.email "testgmail.com"

感谢:

"I normally do this right away when setting up my account on a new machine. The fresh install didn't trigger that reflex. I'm surprised that this is needed to keep git from preforming silly DNS lookups but no big deal."

ons-mbp:spec ALE$ time git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.

real    0m0.012s
user    0m0.006s
sys 0m0.005s
ons-mbp:spec ALE$ time git checkout fsfs
Switched to branch 'fsfs'

real    0m0.012s
user    0m0.006s
sys 0m0.005s

免于心脏病发作。