M
M
Maxim2018-10-30 12:40:17
git
Maxim, 2018-10-30 12:40:17

How to remove a Tag in a remote repository?

I created a tag and pushed it, and then it turned out that this tag needs to be placed on another commit in the local repository, it will be deleted, but not in the remote one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Petrov, 2018-10-31
@sergoslav_0

# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question