Numerous fixes and enhancements for git.