git_helper: Completed git_checkout method