OSX terminal running slow in git repositories
Solution 1:
Most likely, you have something running in your shell prompt which checks and reports the repository's current state. Many shell frameworks will do this (such as oh-my-zsh, or bash-it). They check the state of the repository every time a prompt is displayed.
If you are in a repository that is for some reason very slow to report its status, that might display this behavior. Some possible reasons include:
The repository is on a storage device (disk, USB stick, NAS) which is experiencing a problem, and is slow to respond.
The repository is on a network-mounted filesystem which is slow to respond.
The repository is on a low-performance filesystem mount, such as mounted into a virtual machine.
Solution 2:
Running git status
and then pushing the few of the new changes seemed to fasten up the response of iterm for me.