简体   繁体   中英

How to delete a git remote tag in linked repository?

I am having Development, Staging & Production repository.

Cycle: Development --> Staging --> Production

Development remote: origin

Staging remote: Development & origin

Production remote: Staging & origin

is it possible to remove git tag from all this 3 repository in single git command? if yes than how?

You can not do it using single command as all three are separate repositories.

To remove deleted tag you can use following steps:

Step 1: First of all remove tag from Development repository:

git tag -d tag-name

Step 2: push to Development origin :

git push origin :refs/tags/tag-name

Step 3: Now run following commands in Staging and Production repository :

git fetch --prune remote +refs/tags/*:refs/tags/*

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM