I'm a bit puzzled why I'm unable to checkout a tag directly from the git clone command. What I try to do is:
git clone -b mytag <url>/foo.git
The error I get is:
warning: Remote branch mytag not found in upstream origin, using HEAD instead
Tag is present and e.g.
cd foo && git checkout mytag
...works well.
If anyone could share some light on why it's impossible to clone directly into a tag I would appreciate it. Thank you.