Make Git wrapper layer "thinner"
Make Git wrapper layer "thinner"

The code is now more straightforward.

Let Git do all the refs validation. Also fix clone command not checking
out the correct branch, reuse update logic for that.

bazurbat/jagen