Added public function git_update_head_to_remote().