Support branch / tag for git checkout.