To run an old release and check whether a bug was already there, you don’t need to make a branch. Detached HEAD mode is made for that.
git switch --detach v1.4.0
Your working tree now matches the tag v1.4.0, and HEAD points at that commit directly instead of at a branch. Run it, test it, read the code. When you’re done, git switch - or git switch main takes you back.
git switch insists on --detach here. Without it, git switch v1.4.0 refuses, because a tag isn’t a branch. That’s on purpose: the older git checkout v1.4.0 detaches silently, and people end up committing on a detached HEAD without realising.
You can make commits while detached, for an experiment. They just don’t belong to any branch. To keep them, give them a branch before you leave:
git switch -c fix-for-1.4
If you forget and switch away, git warns you that you’re leaving commits behind and prints their hash. They’re still recoverable through git reflog for a while, until garbage collection cleans them up. So when an experiment turns into something useful, I’d create the branch straight away.
Further reading: git-switch documentation, git-checkout documentation: detached HEAD