On Thu, Mar 14, 2019 at 1:36 AM Eckhard Maaß <eckhard.s.maass@xxxxxxxxxxxxxx> wrote: > And while at it - what should happen, if: > > - there is a tag named example > - no local branch example > - a branch at origin/example > > ... and we switch then? Right now it just gives "cannot find branch", > should there be more information? Should it even create a branch > example? With switch, switching a branch is unambiguous, even though > there is a tag with that name. If I really want to --guess - should I be > given more information? There's checkout.defaultRemote that changes this behavior and it affects git-switch as well. I like the idea of giving more information than just the terse (and technically correct) "cannot find branch". But I may have to delay implementing this a bit. There's a been a lot of updates in git-switch (which is great, don't get me wrong, I appreciate the feedback). I need to get v4 out for review soon then maybe handle the rest in v5 (and finally take a real hard look at git-restore comments). -- Duy