Add git branching util functions.
Addressed comments.
Merge pull request #617 from dart-lang/checkout_command

Add git branching util functions.