TimeMachine restore issue
It sounds like your $PATH is not set correctly. All you probably need to do is set your $PATH in your shell config (.profile, .bashrc, .zshrc, etc… for whatever shell you are using).

For bash derived shells you can use:

export PATH="$PATH:/usr/local"

Are you sure the git binary is in /usr/local? One of my machines shows the git binary is in /usr/local/git/bin and on the other it is in /usr/bin.

I've got different paths for git on different machines, so maybe the new install of git put it in a different place than the old machine.