Adding debugging + bugfix to git

* Git recipe has debug logging
* Git recipe now handles branch switching
bugfixing git recipe