automatically choose selected branch to avoid
"ambiguous argument 'HEAD..origin'" on git log command