error: refname refs/heads/my-branch not found fatal: Branch rename failed code example
Example: error: refname refs/heads/master not found
error: refname refs/heads/HEAD not found
fatal: Branch rename failed
$ git checkout -b main
error: refname refs/heads/HEAD not found
fatal: Branch rename failed
$ git checkout -b main