I've created a new local git repository mirrored from another remote repository:
git init git remote add original {url} git pull original master git remote add origin {url} git push -u origin master This would create a mirror of originals master branch. Now I would like to create a new branch of a tag from original.
How the commands should look like? I tried git checkout -b newbranch original/tagname but I got:
fatal: Cannot update paths and switch to branch 'newbranch' at the same time. Did you intend to checkout 'original/tagname' which can not be resolved as commit?