Replies: 1 comment 3 replies
-
@tombolano The error your ran into stems from the fact that when you cloned the source repo, you also cloned all the tags and the main branch. Thus, your local repo has both an When you run
Once the default is set you can run |
Beta Was this translation helpful? Give feedback.
-
Hello, the repository has a tag called "refs/heads/main", I guess this was added by mistake. You can check it with the command
git tag | head -n 5
:With this tag when forking the repository and trying to do a
git push
the following error will happen:See here for more details: https://stackoverflow.com/questions/70584317/git-push-error-dst-refspec-refs-heads-main-matches-more-than-one
The tag can be deleted locally with
git tag --delete tagname
, which allows to rungit push
again without errors, but ideally it should be deleted from the repository. According to https://stackoverflow.com/questions/5480258/how-can-i-delete-a-remote-tag, it can be done with this command:Beta Was this translation helpful? Give feedback.
All reactions