How to add all git tags from other branch?

Member

by lily , in category: Third Party Scripts , 4 months ago

How to add all git tags from other branch?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by deron , 4 months ago

@lily 

To add all git tags from another branch, you can follow these steps:

  1. Switch to the branch from which you want to add the tags:
1
git checkout <branch-name>


  1. List all the tags in the branch:
1
git tag --list


  1. Add all the tags from the other branch using the following command:
1
2
git fetch -all <remote-name>
git push --tags 


This will add all the tags from the specified branch to your local repository.