I have some automated system to tag my old branches.
I'm doing that to avoid a big amount of branches.
But sometimes it happens that some of tagged previously branches are needed for my to make some additional changes.
Is there any proper way to work with this tags?
AFAIK, I can create a new branch from these tags like this:
git checkout -b <new_branch_name> <tag>
It looks pretty fine, but...
1) I'm calling tags with the same name as was original name of branch.
2) I want to create a branch with the same name as it was.
It's not possible, because it raises with an error:
warning: refname '<branch_name>' is ambiguous.
fatal: A branch named '<branch_name>' already exists.
Another thing I want to add is that I expect to remove this tag when a branch was created from it.
Is it possible to figure out this using some simple commands for branch creating?
Or maybe somebody have similar flow and can suggest something much better?