Top community members
All Questions Ask Question

Welcome to Dirask IT community! ❤ 💻
We are community that shares solutions with each other.

If you think you have something to add here.

you are welcome with your fresh ideas - List Articles

Git push tag to remote repository

1 answers
3 points

How can I push tag created locally to remote repository?

What is the easiest way of doing that?

Commands I executed so far:

$ git tag my_test_tag_name

This create my new tag in local repo. Now harder part how to add it to remote repo?

1 answers
2 points

Easiest way to push local tag to remote repository is by using:

git push origin our_tag_name

It is similar to git push new branch to remote repo.


Second way is to push all local tags to remote repository:

git push --tags

Before using it, ensure that we don't have any unwanted local tags.


List all local tags with this cmd:

git tag

We can list tags with some pattern:

git tag -l our_tag*

It will list all branches that starts with 'our_tag' prefix.

0 comments Add comment

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey 👋
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more