Refactoring and renaming, new tasks, new unit test, minor fix in git-checkout.

- Added a git task to list branches
- Fixed git-checkout
- Updated unit tests for git-checkout and git branches listing.